获取java.lang.UnsatisfiedLinkError:在Windows中使用tesseract时找不到指定的模块

时间:2022-05-24 08:55:22

when i am trying to execute tess4j in eclipse in my windows 7 machine, i am getting the below error.

当我试图在我的Windows 7机器中执行eclipse中的tess4j时,我收到以下错误。

java.lang.UnsatisfiedLinkError: The specified module could not be found.

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

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]

i am using tess4j3.4.2 jar, os 64-bit, jdk-1.8: 64bit, eclipse neon2:64-bit.

我正在使用tess4j3.4.2 jar,os 64位,jdk-1.8:64bit,eclipse neon2:64位。

1 个解决方案

#1


2  

I am also having the same specification as you.

我也和你有相同的规格。

Eclipse : 64bit

Eclipse:64位

JDK 1.8 :64bit

JDK 1.8:64位

OS :64bit

jar Tess4j :3.4.2 version

jar Tess4j:3.4.2版本

Check in your installed programs (Control Panel->Programs->Programs and Features) for

检查已安装的程序(控制面板 - >程序 - >程序和功能)

microsoft visual c++ 2015 redistributable x64 is avalable or not.

microsoft visual c ++ 2015可再发行版x64是否可用。

If not then download it from here and install it.

如果没有,那么从这里下载并安装它。

Then try your app running again. It worked for me

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

#1


2  

I am also having the same specification as you.

我也和你有相同的规格。

Eclipse : 64bit

Eclipse:64位

JDK 1.8 :64bit

JDK 1.8:64位

OS :64bit

jar Tess4j :3.4.2 version

jar Tess4j:3.4.2版本

Check in your installed programs (Control Panel->Programs->Programs and Features) for

检查已安装的程序(控制面板 - >程序 - >程序和功能)

microsoft visual c++ 2015 redistributable x64 is avalable or not.

microsoft visual c ++ 2015可再发行版x64是否可用。

If not then download it from here and install it.

如果没有,那么从这里下载并安装它。

Then try your app running again. It worked for me

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