java - UnsatisfiedLinkError exporting a dll for deployment -


I am trying to create a runan jar file from my project, but two line codes are causing the problem.

I use JNA inside my project, some flight calls I used to file dll, which I made, but I can not link it properly.

I can not make any problems in Elysses and run the application. I can also make a runner jar, but when I try and run it, I get this error:

Enter the dissatisfied link: no kl in java.library.path

KL Mary. The name of the dll file is

Here's how I am loading it:

  Personal DLL del; System.loadLibrary ("kl"); Dll = (Dll) Native.loadLibrary ("kl", Dll.class);   

The .dll file is currently placed in the root directory of my project, I think it is System.loadLibrary which is causing the most problems, I need to see that In the main root folder, which are running my jar file.

Thanks

Try going with Java - Djava.library.path :

java -Djava.library.path = directory_where_your_library_is main-class

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -