In this java tutorial, I discuss how to properly export a java project into a JAR file so that it contains the dynamic library from JNI and can load it into the memory. You can find the "NativeUtils.java" file in this github repository:
https://github.com/adamheinrich/nativ...