The latest version of tess4j (5.20.0) will always throw the following error when doing OCR. The previous version (5.19.0) works fine.
Exception in thread "main" java.lang.Error: Invalid memory access
at com.sun.jna.Native.invokeInt(Native Method)
at com.sun.jna.Function.invoke(Function.java:429)
at com.sun.jna.Function.invoke(Function.java:364)
at com.sun.jna.Library$Handler.invoke(Library.java:270)
at jdk.proxy1/jdk.proxy1.$Proxy0.TessBaseAPIInit1(Unknown Source)
at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:362)
at net.sourceforge.tess4j.Tesseract.getWords(Tesseract.java:729)
at net.sourceforge.tess4j.ITesseract.getWords(ITesseract.java:275)
The latest version of tess4j (5.20.0) will always throw the following error when doing OCR. The previous version (5.19.0) works fine.