Tess4j on Windows 64-bit: exception on multiple threads
I am using tesseract 3 with Java 8 on Windows 64-bit to OCR scanned PDFs. I have followed the instructions on the Tess4j page and have used the 64-bit versions of the required DLLs, and have installed 64-bit Ghostscript. When I run my unit test with the normal @Test (no arguments), the code runs correctly , so I guess I have installed everything correctly. When I run it with 2 threads in parallel (see below) I get an exception. I have read the relevant thread here , but there it is suggested to use Tesseract1, which I am using (I have tried both). Any ideas? This is the code: // @Test // works