Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/318.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
getting java.lang.UnsatifiedLink错误:在windows中使用tesseract时找不到指定的模块_Java_Eclipse_Tesseract - Fatal编程技术网

getting java.lang.UnsatifiedLink错误:在windows中使用tesseract时找不到指定的模块

getting java.lang.UnsatifiedLink错误:在windows中使用tesseract时找不到指定的模块,java,eclipse,tesseract,Java,Eclipse,Tesseract,当我试图在我的Windows7机器上执行eclipse中的tess4j时,我得到以下错误 java.lang.UnsatifiedLinkError:找不到指定的模块 at com.sun.jna.Native.open(Native Method) ~[jna.jar:4.2.1 (b0)] at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:263) ~[jna.jar:4.2.1 (b0)] at com.sun.jna.

当我试图在我的Windows7机器上执行eclipse中的tess4j时,我得到以下错误

java.lang.UnsatifiedLinkError:找不到指定的模块

at com.sun.jna.Native.open(Native Method) ~[jna.jar:4.2.1 (b0)]
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:263) ~[jna.jar:4.2.1 (b0)]
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:403) ~[jna.jar:4.2.1 (b0)]
at com.sun.jna.Library$Handler.<init>(Library.java:147) ~[jna.jar:4.2.1 (b0)]
at com.sun.jna.Native.loadLibrary(Native.java:502) ~[jna.jar:4.2.1 (b0)]
at com.sun.jna.Native.loadLibrary(Native.java:481) ~[jna.jar:4.2.1 (b0)]
at net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(Unknown Source) ~[tess4j-3.0.jar:na]
at net.sourceforge.tess4j.TessAPI.<clinit>(Unknown Source) ~[tess4j-3.0.jar:na]
at net.sourceforge.tess4j.Tesseract.init(Unknown Source) ~[tess4j-3.0.jar:na]
at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source) ~[tess4j-3.0.jar:na]
at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source) ~[tess4j-3.0.jar:na]
at net.sourceforge.tess4j.Tesseract.doOCR(Unknown Source) ~[tess4j-3.0.jar:na]
at ocr.OCRController.handleFileUpload(OCRController.java:109) ~[classes/:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_51]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_51]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_51]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
在com.sun.jna.Native.open(Native方法)~[jna.jar:4.2.1(b0)]
在com.sun.jna.nativellibrary.loadLibrary(nativellibrary.java:263)~[jna.jar:4.2.1(b0)]
在com.sun.jna.nativellibrary.getInstance(nativellibrary.java:403)~[jna.jar:4.2.1(b0)]
在com.sun.jna.Library$Handler.(Library.java:147)~[jna.jar:4.2.1(b0)]
在com.sun.jna.Native.loadLibrary(Native.java:502)~[jna.jar:4.2.1(b0)]
在com.sun.jna.Native.loadLibrary(Native.java:481)~[jna.jar:4.2.1(b0)]
在net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(未知源)~[tess4j-3.0.jar:na]
在net.sourceforge.tess4j.TessAPI.(未知源)~[tess4j-3.0.jar:na]
在net.sourceforge.tess4j.Tesseract.init(未知源)~[tess4j-3.0.jar:na]
在net.sourceforge.tess4j.Tesseract.doOCR(未知源)~[tess4j-3.0.jar:na]
在net.sourceforge.tess4j.Tesseract.doOCR(未知源)~[tess4j-3.0.jar:na]
在net.sourceforge.tess4j.Tesseract.doOCR(未知源)~[tess4j-3.0.jar:na]
在ocr.OCRController.handleFileUpload(OCRController.java:109)~[classes/:na]
在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)~[na:1.8.0\u 51]
在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)~[na:1.8.051]
在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)~[na:1.8.051]
在java.lang.reflect.Method.invoke(Method.java:497)~[na:1.8.0_51]

我使用的是tess4j3.4.2 jar、os 64位、jdk-1.8:64位、EclipseNeon2:64位我也有与您相同的规范

Eclipse:64位

JDK 1.8:64位

OS:64位

jar Tess4j:3.4.2版本

签入已安装的程序(控制面板->程序->程序和功能)以获取

微软Visual C++ 2015可重分发X64是否可用。 如果没有,则从下载并安装

然后再次尝试运行你的应用程序。它对我有用