I moved to tess4j_4.00 from tess4J_3.8.4 which is neccesary to use new 
trainedData- best files. I am getting this error
Exception in thread "main" java.lang.UnsatisfiedLinkError: The specified 
module could not be found.

at com.sun.jna.Native.open(Native Method)
at com.sun.jna.Native.open(Native.java:1759)
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:260)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:398)
at com.sun.jna.Native.register(Native.java:1396)
at com.sun.jna.Native.register(Native.java:1156)
at net.sourceforge.tess4j.TessAPI1.<clinit>(TessAPI1.java:41)
at OCR.confidenceWord(OCR.java:106)
at OCR.processImg(OCR.java:381)
at test.main(test.java:10)

I've reinstalled VC++ 2015 redistributable. I looked up in dependencyWalker 
but no dll seems to be missing. I enabled JNA logs and get this
Looking in classpath from sun.misc.Launcher$AppClassLoader@73d16e93 for 
/com/sun/jna/win32-x86-64/jnidispatch.dll
Found library resource at 
jar:file:/D:/Kiran/Update_27/Test/lib/jna-4.1.0.jar!/com/sun/jna/win32-x86-64/jnidispatch.dll
Looking for library 'libtesseract400'
Adding paths from jna.library.path: 
D://KITE_DATA//ExternalLib//TextLib//win32-x86-64;C:\Users\kirans13\AppData\Local\Temp\tess4j\win32-x86-64
Trying D:\KITE_DATA\ExternalLib\TextLib\win32-x86-64\libtesseract400.dll
Adding system paths: []
Trying D:\KITE_DATA\ExternalLib\TextLib\win32-x86-64\libtesseract400.dll
Looking for lib- prefix
Trying liblibtesseract400.dll
Looking in classpath from sun.misc.Launcher$AppClassLoader@73d16e93 for 
libtesseract400
Found library resource at 
jar:file:/D:/Kiran/Update_27/Test/lib/tess4j-4.0.0.jar!/win32-x86-64/libtesseract400.dll

Does anyone know how to resolve this issue?

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/81ae872d-a427-49c9-b35b-d55245b382b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to