aspose file tools*
The moose likes Beginning Java and the fly likes Linkage Error -JNI - system.library.path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Linkage Error -JNI - system.library.path" Watch "Linkage Error -JNI - system.library.path" New topic
Author

Linkage Error -JNI - system.library.path

Paul Richards
Greenhorn

Joined: Jul 25, 2001
Posts: 19
I am tring to use a third party DLL which is running on MS2000 under IIS5.
I am using the JNI interface that they provided(which I have imported into Visual Age). This is on a different NT server.
I have been having problems when the interface calls the System.loadlibrary() code.
I think I need to set the system.library.path to include the
DLL on the MS2000 server, but I can't seem to do this.
I have been using the command line
java -D"system.library.path = \\DOM2000\d:\path where DOM2000 is the server on which the DLL lies.
This does not work!. Is the command line syntax correct?
when I run the application I am building I get the following message
java.lang.NoClassDefFoundError: QAProWeb java.lang.Throwable(java.lang.String) java.lang.Error(java.lang.String) java.lang.LinkageError(java.lang.String)

Please can someone help?
Asuthosh Borikar
Ranch Hand

Joined: Sep 29, 2000
Posts: 75
Have you tried setting the system property java.library.path, to point to the directory of the dll? I am no expert on this, but it worked for me, on WebSphere/AIX.
 
wood burning stoves
 
subject: Linkage Error -JNI - system.library.path