Fixed it. It was an issue with the JNA dependency. Had JNA loaded in another linked project. As a result it was suing the older version vs this one below. <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId> <version>5.12.1</version> </dependency>
So as it appears to me.... LoadLibs wants to copy the contents from a folder named linux-x86-64 in the jar file into /tmp/tess4j/linux-x86-64. The issue I see is the folder linux-x86-64 doesn't appear to exist in the jar file (tess4j-5.5.0.jar). Now as its a Linux system, I am guessing it doesn't need this tmp folder... but regardless of this the code seems to crash. FYI it seems to execute a similar process with Lept4J and copies over a dll from a windows directory in the jar file. I don't think...
So as it appears to me.... LoadLibs wants to copy the contents from a folder named linux-x86-64 in the jar file into /tmp/tess4j/linux-x86-64. The issue I see is the folder linux-x86-64 doesn't appear to exist in the jar file (tess4j-5.5.0.jar). Now as its a Linux system, I am guessing it doesn't need this tmp folder... but the code seems to crash. FYI it seems to execute a similar process with Lept4J and copies over a dll form a windows directory in the jar file. I dont think its used, but it allows...
So as it appears to me.... LoadLibs wants to copy the contents from a folder named linux-x86-64 in the jar file into /tmp/tess4j/linux-x86-64. The issue I see is the folder linux-x86-64 doesn't appear to exist in the jar file (tess4j-5.5.0.jar). Now as its a Linux system, I am guessing it doesn't need this tmp folder... but the code seems to crash. FYI it seems to execute a similar process with Lept4J and copies over a dll form a windows directory in the jar file. I dont think its used, but it allows...
I am using tess4j v 5.5.0 (which is supposed to work with Tesseract 5.0.3) via Maven in Java on Linux Ubuntu 20.04.3 LTS (Focal Fossa). The application I am using worked previously using Tess4J with Tesseract 4.1.1. I keep getting errors now when I run the following code :- TessAPI.TessBaseAPI handle = TessAPI.INSTANCE.TessBaseAPICreate(); This always worked in the past but now I get the following error :- Exception in thread "pool-23-thread-1" java.lang.NoClassDefFoundError: Could not initialize...
I am using tess4j v 5.5.0 (which is supposed to work with Tesseract 5.0.3) via Maven in Java on Linux Ubuntu 20.04.3 LTS (Focal Fossa). The application I am using worked previously using Tess4J with Tesseract 4.1.1. I keep getting errors now when I run the following code :- TessAPI.TessBaseAPI handle = TessAPI.INSTANCE.TessBaseAPICreate(); This always worked in the past but now I get the following error :- Exception in thread "pool-23-thread-1" java.lang.NoClassDefFoundError: Could not initialize...
I am using tess4j v 5.5.0 (which is supposed to work with Tesseract 5.0.3) via Maven in Java on Linux Ubuntu 20.04.3 LTS (Focal Fossa). The application I am using worked previously using Tess4J with Tesseract 4.1.1. I keep getting errors now when I run the following code :- TessAPI.TessBaseAPI handle = TessAPI.INSTANCE.TessBaseAPICreate(); This always worked in the past but now I get the following error :- Exception in thread "pool-23-thread-1" java.lang.NoClassDefFoundError: Could not initialize...