[英]How to resolve?. Exception in thread “main” java.lang.UnsatisfiedLinkError: Can't find dependent libraries
Hi I have added the native libraries to my project but I am getting exception as. 嗨,我已经将本机库添加到我的项目中,但是我却遇到了异常。 Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find dependent libraries.
线程“主”中的异常java.lang.UnsatisfiedLinkError:找不到依赖的库。 I have added the native libraries like this.
我添加了这样的本机库。
Right click on the Project.
Select Properties.
Click on RUN.
In VM Options TYPE -Djava.library.path="[dir]".
Press Ok.
In NEATBEANS IDE 在NEATBEANS IDE中
my method is like this. 我的方法是这样的。
static{
// System.out.println("inside the static intializer");
System.loadLibrary("SBXPCJavaProxy");
// System.load("D:\\bio-metric\\SBXPC_CORE_130330\\SBXPCJavaProxy.dll");
}
I added like this. 我这样添加。
-Djava.library.path="D:\bio-metric\SBXPC_CORE_130330"
Try and add the library somewhere inside the project path, like a /lib folder maybe. 尝试将库添加到项目路径内的某个位置,例如/ lib文件夹。 And load the library from there.
并从那里加载库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.