Initializing a native JNI library
Before accessing their native methods, native libraries must be loaded through a Java call to System.loadLibrary()
. JNI provides a hook, JNI_OnLoad()
, to plug your own initialization code. Let's override it to initialize our native store.
Note
The resulting project is provided with this book under the name Store_Part4
.