java.lang.UnsatisfiedLinkError: Unable to load library [message #1771176] |
Tue, 22 August 2017 11:51  |
Eclipse User |
|
|
|
Dear honorable Members,
I have faced a problem due to load a dll file in my project. I'm going to develop an eclipse plugin project. I have to use another project as a reference because I am going to use some other classes of that project. As I am going to develop a plugin project that's why I was exported that reference project as jar and added this jar to my current project's lib folder as well as added to the build path also. The problem is that, there is a class in that reference project which Is going to load a dll using "(ImageProcessing) Native.loadLibrary(System.getProperty("java.home") + File.separator + "tools"+ File.separator + "imageProcessing", ImageProcessing.class);". I can use other classes from this reference project properly except this "ImageProcessing" class. When I am going to access this class it's throws an exception like below:
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.UnsatisfiedLinkError: Unable to load library 'G:\Test_Project\64bit\jre\tools\imageProcessing': Native library (win32-x86-64/G:\Test_Project\64bit\jre\tools\imageProcessing.dll) not found in resource path (C:\Users\myUserName\eclipse\plugins\org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar))
"imageProcessing.dll" exists in "G:\Test_Project\64bit\jre\tools\".
My JAVA_HOME=C:\Program Files\Java\jdk1.8.0_112\bin. I have also added the imageProcessing.dll location path in the PATH environment. Another think is that I have a customized "jre( 'G:\Test_Project\64bit\)" folder which I'm actually used as my project "JRE System Library" and I have configured it from "Java Build Path Libraries". I have printed System.getProperty("java.home") from my project and the output is "G:\Test_Project\64bit\jre"
N.B: sorry for my bad English. Thanks in advance.
|
|
|
|
Powered by
FUDForum. Page generated in 0.06557 seconds