I've built a jar through netbeans, specifying my main class and libraries. In the properties section, I have the library in the Libraries section and I've set
-Djava.library.path=/path/to/lib
in the Run section. However, when I run the jar file through the command line using
java -jar
it returns the error
java.lang.UnsatisfiedLinkError: no libName in java.library.path
There is a lib directory in the same directory as my jar file, with the library in it, and the manifest file in the jar contains
Class-Path: lib/libName.jar
What's wrong with my jar file?