PRB: Getting "Unsatisfied Link Error" When Using J/Direct (180713)
The information in this article applies to:
- Microsoft SDK for Java 2.0
- Microsoft SDK for Java 3.1
- Microsoft SDK for Java 2.01
- Microsoft SDK for Java 2.02
- Microsoft SDK for Java 3.0
- Microsoft virtual machine
- Microsoft Visual J++ 1.0
- Microsoft Visual J++ 1.1
This article was previously published under Q180713 SYMPTOMS
The following error message is generated when trying to run a Java
application or applet that uses J/Direct:
Error: Java.lang.unsatisified link error...
CAUSE
This error can occur if an old version of the Java Language Compiler (JVC)
is used. Make sure you are using Jvc.exe version 4337 or later. Version
4337 is shipped with the Microsoft SDK 2.0 for Java. Since J/Direct
requires the use of compile-time directives like @dll.import (to import
native methods from a DLL) it requires the latest version of Jvc.exe, which
can recognize these compile-time directives.
NOTE: Microsoft virtual machine build 2252 (or higher) is required for
J/Direct.
RESOLUTION
After you have installed the SDK for Java 2.0 or later, if you are trying
to build your Java applet or application that uses J/Direct from within the
Developer Studio, then add the SDK-Java\Bin directory to the Visual J++
executable files path as follows:
- From the Tools menu, point to Options and click the Directories tab.
- Under the Platform menu, make sure "Java Virtual Machine" is selected.
- Under "Show directories for," choose "Executable files."
- Include the directory "C:\SDK-Java\Bin" and click the up arrow until it
is the first directory listed in the list box.
Or you can use the following steps instead:
- Back up your current Visual J++'s copy of Jvc.exe. You can locate this
file in C:\Program Files\DevStudio\SharedIDE\bin.
- Then copy the following files from your SDK-Java\Bin directory
(C:\SDK-Java\Bin) to C:\Program Files\DevStudio\SharedIDE\bin:
STATUS
This behavior is by design.
REFERENCES
For more information about J/Direct, visit the following page on the
Microsoft Web site:
For more information on Updating the Visual J++ 1.x compiler, please see
the SDK for Java documentation and the following article in the Microsoft
Knowledge Base:
177165 INFO: Use New Java 1.1 Language Features with Visual J++ 1.1
For the latest Knowledge Base articles and other support information on
Visual J++ and the SDK for Java, see the following pages on the Microsoft
Technical Support site:
Modification Type: | Minor | Last Reviewed: | 11/14/2005 |
---|
Keywords: | kberrmsg kbFAQ kbprb KB180713 |
---|
|