dylib似乎无法在Java中导入

时间:2015-10-06 05:33:49

标签: java dylib

我正在尝试在我的java代码中加载一些dylib。系统负载拒绝它们,但dylib在项目中导入,如下图所示:

enter image description here

我按如下方式加载lib

包桌面;

public class desktop {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        System.loadLibrary("libiamusb-compat");
        System.loadLibrary("libiamusb1");
        System.loadLibrary("liblibiammtp");

    }

}

问题是:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no libiamusb-compat in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1122)
    at i.am.desktop.desktop.main(desktop.java:7)

有什么想法吗?

0 个答案:

没有答案