Hi,
I am trying to run Tess4J in 64 JVM from Netbeans IDE and getting this error:
Testcase: testTessBaseAPIRect(net.sourceforge.tess4j.TessAPI1Test): Caused an ERROR
Unable to load library 'libtesseract302': The specified module could not be found.
java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': The specified module could not be found.
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:169)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:242)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:205)
at com.sun.jna.Native.register(Native.java:1033)
at net.sourceforge.tess4j.TessAPI1.<clinit>(TessAPI1.java:37)
at net.sourceforge.tess4j.TessAPI1Test.testTessBaseAPIRect(TessAPI1Test.java:72)
As far as I searched, I think this error message is because of the JVM. But I am not sure. The .dll file is in the project folder, but it seems JVM can not find it..Can anyone recommend a link to run Tess4J test from scratch?
Any work around for this ?
public static final String LIB_NAME_NON_WIN = "tesseract";
/**
* An instance of the class library.
*/
Public static final TessAPI INSTANCE = (TessAPI) Native.loadLibrary(WINDOWS ? LIB_NAME : LIB_NAME_NON_WIN, TessAPI.class);
you'll probably need to install the VC++ Runtime Redistributable. Check http://tess4j.sourceforge.net/usage.html for download links.
--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/afe888dc-9368-4cd0-b87f-7f3862a1e932%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': The specified module could not be found.
Visual Studio 2012 x86 and x64 Runtimes
Since tesseract and leptonica binaries are compiled with Visual Studio 2012 you'll need to ensure you have the Visual Studio 2012 Runtime installed. This can be found here.
So try again with the VS2012 runtime.
Also note that newer binaries are available at https://github.com/charlesw/tesseract/tree/dev_3.03/src/lib/TesseractOcr/x64
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/557b7c87-ad14-4477-be8e-2939a9f2f110%40googlegroups.com.