0

首先非常感谢您的时间,我在开发一个通过指纹控制用户的小程序时遇到了问题,就像在 eclipse 中使用 DigitalPersona SDK 开发的那样,问题是当我从网页浏览器运行它时,

Exception in thread "AWT-EventQueue-2" java.lang.RuntimeException: com.digitalpersona.onetouch.jni.JniException
 at com.digitalpersona.onetouch.capture._impl.DPFPCaptureFactoryImpl$CaptureImpl.startCapture(DPFPCaptureFactoryImpl.java:187)
 at CDesVerifinger.formComponentShown(CDesVerifinger.java:76)
 at CDesVerifinger.access$1(CDesVerifinger.java:73)
 at CDesVerifinger$1.componentShown(CDesVerifinger.java:64)
 at java.awt.Component.processComponentEvent(Unknown Source)
 at java.awt.Component.processEvent(Unknown Source)
 at java.awt.Container.processEvent(Unknown Source)
 at java.awt.Component.dispatchEventImpl(Unknown Source)
 at java.awt.Container.dispatchEventImpl(Unknown Source)
 at java.awt.Component.dispatchEvent(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: com.digitalpersona.onetouch.jni.JniException
 at com.digitalpersona.onetouch.jni.AcquisitionLibrary.getInstance(AcquisitionLibrary.java:50)
 at com.digitalpersona.onetouch.jni.Acquisition.<init>(Acquisition.java:45)
 at com.digitalpersona.onetouch.capture._impl.DPFPCaptureFactoryImpl$CaptureImpl.startCapture(DPFPCaptureFactoryImpl.java:104)
 ... 16 more

非常感谢您的帮助

再会

4

4 回答 4

2

您必须签署 jar 文件。这就是我所做的,现在它正在工作。

于 2012-05-22T21:53:32.620 回答
2

有同样的问题,这里有人告诉这是必要的

capturer.setPriority(DPFPCapturePriority.CAPTURE_PRIORITY_LOW);

调用 createCapture 解决后。我现在就试试这个答案。

于 2011-10-07T16:59:11.420 回答
2

您需要将 添加dptojni.jar到项目的库中,它位于c:/programs files/digital persona/bin/java. 或者您可以获取该类jniException并将其添加到您的项目中。

于 2011-08-15T15:09:15.767 回答
1

确保在调用 setCapturePriority 方法之前已实例化 DPFPCapture 对象,并确保在使用完捕获对象后停止捕获

于 2013-02-20T18:11:26.873 回答