JNI and the Java library path (JVM java.library.path system property)

Sometimes I have to use native libraries (.so libraries under Linux or .dll libraries under Windows) in Java programs. That’s where you use the Java Native Interface (JNI). It allows you to call functions implemented in native libraries from Java code. And almost every time I forget to remember how the JVM tries to locate the referenced native libraries. [Read more...]