UnsatisfiedLinkException with JNI and Tomcat
Posted on 2004-04-15
I have a JSP page calling a method in a seperate class that attempts to load a JNI library. On System.loadLibrary() I get the following exception:
java.lang.UnsatisfiedLinkError: no 3StoreJNI in java.library.path
My java.library.path is set to '/usr/local/lib:/usr/lib/java:/usr/lib' and in /usr/local/lib is 'lib3StoreJNI.so'. Calling System.mapLibraryName() gives 'lib3StoreJNI.so'. The same bit of code works fine outside of Tomcat, so I'm a bit confused as to what is going wrong. I'm running Tomcat 5.0.18 on a Gentoo linux box, kernel 2.6.1.
Is there anything else I can do to track the problem down?