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!

System.loadLibrary() only once

843829Jul 13 2004 — edited Jul 14 2004
I am using JNI in an web application running on Tomcat 5.19 Unfortunately tomcat have a problem while loading the same Library for a second time, and I must ensure that the System.loadLibrary() is called only once.

Is there any opportunity to recognize if an library have already been loaded into current JVM instance??

Something like:
If("myLib" is not loaded) {
  System.loadLibrary("myLib");
}
Thank you in advance.

Nermin B.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2004
Added on Jul 13 2004
1 comment
122 views