Loading DLL in Java - Eclipse - JNI

后端 未结 9 586
北荒
北荒 2020-12-17 18:19

I am trying to load a dll in java using the following code System.loadLibrary(\"mydll\");

The project is placed in D:\\development\\project\\ and i have placed t

9条回答
  •  情深已故
    2020-12-17 18:52

    I got my error resolved by using the following:

       static {
        try {
            System.loadLibrary("myDLL");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    

    Instead of using System.load("myDLL.dll")

提交回复
热议问题