• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Linkage Error -JNI - system.library.path

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic