PRB: Application Using JNI Gives UnsatisfiedLinkError

ID: Q199950


The information in this article applies to:
  • Microsoft virtual machine
  • Microsoft SDK for Java, versions 2.02, 3.1, 3.2
  • Microsoft Visual J++, versions 1.1, 6.0


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.


REFERENCES

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

INFO: Availability of Current Build of Microsoft VM for Java

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

http://support.microsoft.com/support/visualj/

http://support.microsoft.com/support/java/

(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Derek Jamison, Microsoft Corporation.

Additional query words: kbSDKJava202 kbSDKJava31

Keywords : kbInternet kbJNative kbSDKJava kbVJ110 kbVJ600 kbGrpJava kbSDKJava320 kbVJ600FAQ kbSDKJavaFAQ kbJavaVMFAQ
Version : WINDOWS:1.1,2.02,3.1,3.2,6.0
Platform : WINDOWS
Issue type : kbprb


Last Reviewed: November 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.