I am implementing an OCR system. When I placed dll files on the java class path it gives the following error.
Exception in thread "main" java.lang.UnsatisfiedLinkError: G:\software\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18\bin\win32-x86-64\libtesseract303.dll: Can't find dependent libraries
And after running the project if I check the java class path, all the dll files added are vanished. I followed almost all the tutorials related to tesseract
. But can't find a solution. Does anybody have an idea?
1).JDK version- 1.8(64 bit) 2).Library is 64 bit 3).all three libraries are placed within library path. 4) I followed the steps given by this tutorial here.In this tutorial they have introduced the 32 bit libraries.Instead of that I used 64 bit libraries.I got the follwing error java.lang.UnsatisfiedLinkError: Unable to load library 'libtesseract304': Native library (win32-x86-64/libtesseract303.dll) not found in resource path ([file:/C:/Users/User/Documents/GitHub/Linguist/build/web/WEB-INF/classes). Then I tried to check if i can load the library using system.load(). Then I got the following error. My class path is placed with tomcat folder.
Exception in thread "main" java.lang.UnsatisfiedLinkError: G:\software\apache-tomcat-8.0.18-windows-x64\apache-tomcat-8.0.18\bin\win32-x86-64\libtesseract303.dll: Can't find dependent libraries