I am developing a Java application that should be release as a jar. This program depends on C++ external libraries called by JNI. To load them, I use the me
Basically this should work. As this is the way JNA does it, simply download it and study the code. YOu even have some hints to make this platform independent...
EDIT
JNA brings its native code along in the jar, unpacks the correct binary at runtime und loads it. This may be a good pattern to follow (if i got your question correct).