this code works fine on my desktop application: package tess4j_ex; import java.io.File; import net.sourceforge.tess4j.ITesseract; import net.sourceforge.tess4j.Tesseract; import net.sourceforge.tess4j.TesseractException; public class test { public static void main(String[] args) { File imageFile = new File("eurotext.tif"); ITesseract instance = new Tesseract(); try{ String result = instance.doOCR(imageFile); System.out.println(result); }catch(TesseractException e){ System.err.println(e.getMessage());...
i have try on my local win 10 environment before moving to the server environment and it works fine
under Temp\tess4j\win32-x86-64 i have gsdll64.dll,liblept174.dll and libtesseract3051.dll
i add on the application server temp the folder tess4j\win32-x86-64 and i get this error: java.lang.NoClassDefFoundError: Could not initialize class net.sourceforge.tess4j.TessAPI at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:367) at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:280) at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:212) at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:196)
yes he have access/permission to the temp folder.
I try to some tutorial and i add: .MV C++ 2015 Redistributable (x64) .I add on C:\Program Files (x86)\Apache Software Foundation\Tomcat 9.0\temp\tess4j\win32-x86-64 I still have the error.
I'm developing a web app using Spring MVC with Maven and with some functionality using tess4j for the OCR. My dev environment: Eclipse Neon.3 os: win server 2008R2 jvm 64 bit apache tomecat 9 I downloaded the latest version of Tess4J from http://tess4j.sourceforge.net/ and imported it into eclipse. I am following this URL, I followed all the steps but when I try to execute it I am getting the following error: java.lang.UnsatisfiedLinkError: The specified module not found. at com.sun.jna.Native.open(Native...
Details of environment: spring MVC with maven os: win server 2008R2 jvm 64 bit apache tomecat 9