JNA java.lang.UnsatisfiedLinkError: Unable to load library. / OUNPPM '

So, I have a project that uses a series of external C .dll, and it works fine when working in Netbeans, but when I try to start it .jarmyself, I get this error:

Exception in thread "Thread-3" java.lang.UnsatisfiedLinkError: Unable to load library. / OUNPPM ': the specified module was not found.

I have come across this before for several reasons:

1) Do not find the file. 2) Do not find another .dll, which .dll depends on. 3) Trying to load a 64-bit .dll with a 32-bit JRE (or vice versa)

Is there a way to get the best error message to find out what is happening? JNI gave the best mistakes, but I'm really not in a place where I can change them right now.

+3
source share
1 answer

when you run the main class in your jar file, how you use it, and you set your jna.library.path.

If your jna.library.pathindicates the location of the correct DLLs, you will not get these errors.

0
source

Source: https://habr.com/ru/post/1785301/


All Articles