1

当我启动我的应用程序时,我收到以下消息:

Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
    at com.digitalpersona.onetouch.jni.Matcher.<clinit>(Matcher.java:8)
    at com.digitalpersona.onetouch.processing._impl.DPFPEnrollmentFactoryImpl$EnrollmentImpl.<init>(DPFPEnrollmentFactoryImpl.java:40)
    at com.digitalpersona.onetouch.processing._impl.DPFPEnrollmentFactoryImpl.createEnrollment(DPFPEnrollmentFactoryImpl.java:20)
    at Formularios.CapturaHuella.<init>(CapturaHuella.java:245)
    at Formularios.CapturaHuella$10.run(CapturaHuella.java:561)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$000(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "loadLibrary.otmcjni")
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkLink(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.digitalpersona.onetouch.jni.MatchingLibrary.<clinit>(MatchingLibrary.java:16)

... 19 more
4

3 回答 3

2

这意味着您没有安装指纹驱动程序:

http://www.digitalpersona.com/support/downloads/software-updates/reader-engine/

于 2013-05-17T16:24:37.980 回答
0

AccessControlException表明您无权将 DLL otmcjni.dll 加载到的 Java 进程中。

确保您已签署JAR 文件。

于 2012-07-27T16:32:28.610 回答
0

通常,当您有一些静态初始化块并且出现问题时会发生这种情况 - 主要是由于 NullPointerException。尝试仔细调试这个初始化块

于 2012-07-27T16:27:32.343 回答