Loading JNI library on Tomcat startup
843829May 3 2004 — edited May 4 2004I am trying to load a JNI library on startup of servlet. I have written the following code in my servlet init function:
public void init(ServletConfig config) throws ServletException {
super.init(config);
log.info("Loading native libraries...");
System.loadLibrary("foo");
log.info("Native libraries loaded...");
}
On Tomcat startup, I see the "Loading native libraries..." message, but I don't see the "Native libraries loaded...". As if the system hung in the System.loadLibrary function.
Anybody knows how to solve this problem?
Martin