Default language.

Working with native libraries


When the Java virtual machine (JVM) executes a Java application that requires a native library through the Java native interface (JNI), the JVM must load the native library exactly once. This library (exposed to the Java layer by JNI) remains available as long as the JVM process is active. If a different Java application using the same native library executes on the same JVM process, it tries to load the native library again. Because the library is already loaded, an exception is generated.

The JNI developer must make sure this native library is loaded exactly once and must handle the exception if the same library is asked to be loaded again.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*