I think that’s quite interesting that we need to load the -Djava.library.path and the System.setProperty and why is that?!
- Set path in console when executing jar:
java -Djava.library.path=./lib -jar myApplication.jar
- Set path in the code before loading library:
On this stackoverflow they discuss about this, it’s for some systems that do not load from the lib call.