as stated in the title, my programm won't start outside of Eclipse. I've imported a library consisting of a xy.jar and xy_jni.dll
CMD within the folder of the jar-file:
java -jar myprogramm.jar
is followed by the statement:
"Native code library failed to load. Please add the xy-folder as location for native libraries. java.lang.UnsatisfiedLinkError: no xy_jni in java.library.path
It doesn't matter if I click extract or package ressources when exporting the jar-file.
Also under Project-Settings, Java Build Path, Libraries
the .jar & xy_jni(.dll) is added and within all the expandables in libraries the "xy-folder" is set as "Native library location". Also under Libraries I added a "Add Library" named "xy-folder" inhibiting the .jar & xy_jni.dll
When opening the final exported jar-file with a file viewer the xy-folder is included with the xy_jni.dll only, the xy.jar is in the root folder.
What am I doing wrong? Thank you very much in advance!