我一直在尝试将d-logic ufr系列rfid阅读器与java集成。我使用了他们的资料库中提供的示例应用程序https://www.d-logic.net/code/nfc-rfid-reader-sdk/ufr-mf-examples-java 但是当我运行应用程序时,我得到如下错误-
java.lang.UnsatisfiedLinkError: Unable to load library 'C:\Users\Downloads\ufr-mf-examples-java-master\ufr-mf-examples-java-master\uFCoderSimple\ufr-lib\windows\x86_64\uFCoder-x86_64.dll': Native library (win32-x86-64/C:\Users\Downloads\ufr-mf-examples-java-master\ufr-mf-examples-java-master\uFCoderSimple\ufr-lib\windows\x86_64\uFCoder-x86_64.dll) not found in resource path ([target classes])
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:271)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Library$Handler.<init>(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:412)
at com.sun.jna.Native.loadLibrary(Native.java:391)
at uFRSimple.UFRSimple.<init>(UFRSimple.java:93)
at uFRSimple.UFRSimple$13.run(UFRSimple.java:1454)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
我已经检查了dll文件存在的路径,它们是可用的。我试过用其他一些dll,不管程序是否正在访问dll文件,然后我发现它正在访问,但当我提供ufcoder-x86\u 64.dll路径时,它给出了这个错误,请任何人帮助
操作系统-windows 10 64位oracle jdk-1.8 netbeans ide
try {
uFrINSTANCE = (uFrFunctions) Native.loadLibrary("dll path", uFrFunctions.class);
} catch (UnsatisfiedLinkError e) {
e.printStackTrace();
JOptionPane.showMessageDialog(null, "Unable to load library for path : " + GetLibFullPath(false));
}
暂无答案!
目前还没有任何答案,快来回答吧!