How to resolve “java.lang.UnsatisfiedLinkError: no

2019-06-11 09:37发布

问题:

I am using AspriseOCR in my project for text recognition from the image. aspriseOCR.jar file is configured properly to my Eclipse Build Path Libraries, but getting the below error. Could someone please guide me how to resolve this?

java.lang.UnsatisfiedLinkError: no AspriseOCR in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1860)
at java.lang.Runtime.loadLibrary0(Runtime.java:845)
at java.lang.System.loadLibrary(System.java:1084)
at com.asprise.util.ocr.OCR.loadLibrary(OCR.java:247)
at com.asprise.util.ocr.OCR.<init>(OCR.java:56)

回答1:

The problem is solved by copying below DLL files into "C:\Windows\System32" location, which can be found in "Asprise-OCR-Java.zip", downloaded from asprise site.

AspriseOCR.dll
DevIL.dll
ILU.dll
AspriseJTwain.dll


回答2:

Remove aspriseOCR.jar from your build path, and move it to libs folder.



标签: java eclipse ocr