Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Library path, Tomcat and JNI

Status
Not open for further replies.

Gaelle

Programmer
Jun 20, 2001
62
FR
Hello !

I have a problem of library with using JNIs and Tomcat. (tomcat 3.3.1, jdk 1.2.2)
I have programmed with JNI, and created a .so library that seems not to be found : I get this error message :
Java.lang.UnsatisfiedLinkError : no CsimSimple in java.library.path
Im my Java class, I used : System.loadLibrary(« CsimSimple ») ; (I tried with load and the full path of the library, but didn’t get more success)
I set the environnement variable LD_LIBRARY_PATH to the path of my .so library.

Does anybody have an idea of why it won’t work ?
It’s probably a problem of library path.
Is there a special place my .so library ought to be ?
What should I set my LD_LIBRARY_PATH variable to, since it doesn’t seem to be correct ?
Is my call to the loadLibrary correct ?

Any answer will be welcome !
Gaelle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top