JNA java.lang.UnsatisfiedLinkError: Unable to load library './OUNPPM'
So, I have a project that uses a series of external C .dll
s and it works fine when running in Netbeans, but when I try to run the .jar
by itself, I get this error:
Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: Unable to load library './OUNPPM': The specified module could not be found.
I've enco开发者_C百科untered this before for a few different reasons:
1) Not finding the file. 2) Not finding another .dll that .dll is dependent on. 3) Trying to load a 64-bit .dll with the 32-bit JRE (or vice versa)
Is there any way to get a better error message to find out what is going on? JNI gave better errors, but I'm not really at a place I can change those right now.
when you are launching the main class in your jar file, how are you running it and have you set your jna.library.path.
If your jna.library.path
points to the location of the correct dlls then you shoul dnot get those errors.
精彩评论