java.lang.UnsatisfiedLinkError in Windows Server 2008

100 views
Skip to first unread message

Nuno Feliciano

unread,
Oct 15, 2019, 11:56:14 AM10/15/19
to tesseract-ocr
Hi,

I am getting an error with Tess4j when I run it in a Windows Server 2008 R2 64 bit (tess4j-4.3.0).

Exception in thread "main" java.lang.UnsatisfiedLinkError: 
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.Library$Handler.<init>(Library.java:147)
at com.sun.jna.Native.loadLibrary(Native.java:412)
at com.sun.jna.Native.loadLibrary(Native.java:391)
at net.sourceforge.tess4j.util.LoadLibs.getTessAPIInstance(LoadLibs.java:85)
at net.sourceforge.tess4j.TessAPI.<clinit>(TessAPI.java:42)
at net.sourceforge.tess4j.Tesseract.init(Tesseract.java:426)
at net.sourceforge.tess4j.Tesseract.getWords(Tesseract.java:693)

I am using jdk1.8 64 bit
I don't have the error in a Windows 8.1 Enterprise 64 bit

I have tried using dependecy walker to figure out which dlls I was missing. I tried adding a few (dcomp,vcruntime140,msvcp140 and a few more), but no luck.

Can anyone help?

Aaron Stewart

unread,
Oct 16, 2019, 12:12:02 AM10/16/19
to tesseract-ocr
Make sure the Tesseract DLL is in the system PATH or java.library.path...?

Nuno Feliciano

unread,
Oct 16, 2019, 7:24:33 AM10/16/19
to tesseract-ocr
Hi Aaron,

I already tried that, but no luck.
I can load liblept1760, but not tesseract400, using Native.loadLibrary("libtesseract400", com.sun.jna.Library.class)
I believe I have some conflict, but don't know which.

Quan Nguyen

unread,
Oct 17, 2019, 7:50:25 PM10/17/19
to tesseract-ocr
Can you try with version 4.3.1 or the latest version 4.4.1?

Nuno Feliciano

unread,
Oct 21, 2019, 9:07:16 AM10/21/19
to tesser...@googlegroups.com
It worked with 4.4.1. Thanks a lot! 

--
You received this message because you are subscribed to a topic in the Google Groups "tesseract-ocr" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tesseract-ocr/hszVYemiUj4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/288c2e81-6a76-41fa-b7b9-9fff1cad5d74%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages