Exception in thread “main” java.lang.UnsatisfiedLinkError"

后端 未结 2 1543
误落风尘
误落风尘 2020-12-19 19:15

This exception is arising when I am running my program for smart card reading. My device is not connected. Please help me.

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-19 19:42

    I got this when using System.loadLibrary which will use the java.libary.path resource. Since absolute path isn't allowed by loadLibrary, you can use the absolute path and load method.

        System.load(HelloWorld.class.getResource("/dlls/HelloWorld.dll")
                .getPath());
    

提交回复
热议问题