This is kind of duplicate question, But none of the answers helped to resolve this. I did this,
- Pulled code from here
- Added -Djna.library.path=${workspace_loc:/ocr-tess4j-example}/dlls/x64 in VM arguments, This folder has three dll files gsdll64.dll,liblept168.dll and libtesseract302.dll
- Executed the java file "TesseractExample.java"
Getting below exception.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract302': The specified module could not be found.
I have tried below options but nothing works
- Setting jna.library.path in VM variable
- Setting it in System.setProperty
- Kept those dll files in root folder and without setting jna.library.path
Please help me to resolve this