simoncox
asked on
UnsatisfiedLinkException with JNI and Tomcat
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.UnsatisfiedLinkE rror: no 3StoreJNI in java.library.path
My java.library.path is set to '/usr/local/lib:/usr/lib/j ava:/usr/l ib' 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?
Thanks,
Simon Cox
java.lang.UnsatisfiedLinkE
My java.library.path is set to '/usr/local/lib:/usr/lib/j
Is there anything else I can do to track the problem down?
Thanks,
Simon Cox
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
THX simoncox!
ASKER