Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Loading JNI library on Tomcat startup

843829May 3 2004 — edited May 4 2004
I 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




Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 1 2004
Added on May 3 2004
5 comments
969 views