java.lang.NoClassDefFoundError

Could not initialize class net.sourceforge.tess4j.TessAPI

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • java.lang.NoClassDefFoundError: Could not initialize class net.sourceforge.tess4j.TessAPI at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:367)[tess4j-3.0.0.jar:3.0.0] at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:280)[tess4j-3.0.0.jar:3.0.0] at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:212)[tess4j-3.0.0.jar:3.0.0] at net.sourceforge.tess4j.Tesseract.doOCR(Tesseract.java:196)[tess4j-3.0.0.jar:3.0.0] at ocr.OCRController.handleFileUpload(OCRController.java:127)[classes/:0.3.0] 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] at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)[spring-webmvc-4.2.3.RELEASE.jar:4.2.3.RELEASE]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,