Microsoft SDK for Java

Q199950 PRB: Application Using JNI Gives UnsatisfiedLinkError

The information in this article applies to:

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 Microsoft VM in the SDK for Java 2.x, you must use build 2435 or greater of the Microsoft VM. When you run a JNI application using the Microsoft VM in the SDK for Java 3.x, you must use build 3158 or greater of the Microsoft VM.

REFERENCES

For additional information on the current release of the Microsoft VM, please refer to the following Knowledge Base article:

Q163637 INFO: Availability of the current build of Microsoft VM.

INFO

For the latest Knowledge Base articles and other support information on Microsoft® Visual J++® and the SDK for Java, see the following page on the Microsoft Technical Support site:

http://support.microsoft.com/support/visualj/ This link takes you to a site on microsoft.com

http://support.microsoft.com/support/java/ This link takes you to a site on microsoft.com

© 1999 Microsoft Corporation. All rights reserved. Terms of use.