Using Tomcat 5.5 on Linux.
I've set my environment variable with export JAVA_OPTS='-Djava.library.path=/path/to/my/sharedobjectfolder'

After restarting tomcat and hitting my servlet (which depends on the .so file in the folder above) I get an UnsatisfiedLinkError no X found in java.library.path

I've looked in catalina.out and see a message that says that The Apache Tomcat Native library cannot be found on java.library.path: /path/to/my/sharedobjectfolder. So it appears that Tomcat is using the path at least when it starts up. I've seen other Linux Tomcat users raising this same problem and not getting any answers. Within Eclipse I can run Tomcat and configure a VM parameter for java.library.path and my library is successfully found when the servlet runs so this issue only pertains to running tomcat directly from the startup scripts (e.g. /etc/init.d/tomcat start)

What could be wrong?


--
David Marshall
Staff Software Engineer
Center For Knowledge Communication Computer Science Dept.
University of Massachusetts - Amherst
www.cs.umass.edu/~marshall



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to