Microsoft KB Archive/199950

= PRB: Application Using JNI Gives UnsatisfiedLinkError =

Article ID: 199950

Article Last Modified on 8/25/2005

-

APPLIES TO


 * Microsoft Java Virtual Machine
 * Microsoft Software Development Kit for Java 2.02
 * Microsoft Software Development Kit for Java 3.1
 * Microsoft Software Development Kit for Java 3.2
 * Microsoft Visual J++ 1.1 Standard Edition
 * Microsoft Visual J++ 6.0 Standard Edition

-



This article was previously published under Q199950



SYMPTOMS
When you run a Java application that requires Java Native Interface (JNI) the following error might occur:

java.lang.UnsatisfiedLinkError:AClassWithNativeMethods.theNativeMethod Possible causes: If you are trying to use J/Direct (@dll.import), check your compiler version (for JVC, requires 4336 or greater.) If you are trying to use RNI, there are new requirements: see documentation. Probably wrong version of Java compiler.



CAUSE
When you run a JNI application using the Java Virtual Machine in the SDK for Java 2.x, you must use build 2435 or greater of the Java Virtual Machine. When you run a JNI application using the Java Virtual Machine in the SDK for Java 3.x, you must use build 3158 or greater of the Java Virtual Machine.

