如何解决"java.lang.UnsatisfiedLinkError:java.library.path中没有AspriseOCR." [英] How to resolve "java.lang.UnsatisfiedLinkError: no AspriseOCR in java.library.path.."

查看:209
本文介绍了如何解决"java.lang.UnsatisfiedLinkError:java.library.path中没有AspriseOCR."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用AspriseOCR从图像中识别文本. aspriseOCR.jar文件已正确配置到我的Eclipse Build Path Libraries,但是出现以下错误.有人可以指导我如何解决这个问题吗?

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)

推荐答案

通过将下面的DLL文件复制到"C:\ Windows \ System32"位置即可解决此问题,该位置可以在"Asprise-OCR-Java.zip"中找到,从 asprise网站下载.

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

这篇关于如何解决"java.lang.UnsatisfiedLinkError:java.library.path中没有AspriseOCR."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆