question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS 10.15 - Java 14: Tess4J: JNA load library libtesseract.dylib fails

See original GitHub issue

com.sun.jna.NativeLibrary.loadLibrary("tesseract", ...)

gives: java.lang.UnsatisfiedLinkError: dlopen(libtesseract.dylib, 9): image not found

works up to Java 13

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
RaiMancommented, Aug 25, 2020

It is a Tess4J problem using the JNA java library to load the native tesseract library.

In SikuliX 2.0.5 this will be fixed by setting/adding /usr/local/lib to the system property jna.library.path. Hence libtesseract.dylib/libtesseract.so must be in that folder on Mac/Linux.

Commit: https://github.com/RaiMan/SikuliX1/commit/49f1bf3e5330365c97085b9533050bd538119c62

3reactions
ndinevcommented, Jan 26, 2021

When we can expect 2.0.5 to be available for download since this problem for MAC is annoying

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tess4j unsatisfied link error on mac OS X - java - Stack Overflow
My tesseract is working fine from terminal but trying to run tess4j through tesseract throws me an error . java.lang.UnsatisfiedLinkError: Unable to load...
Read more >
Java 14: Tess4J: JNA load library libtesseract.dylib fails
macOS 10.15 - Java 14: Tess4J: JNA load library libtesseract.dylib fails.
Read more >
Tesseract OCR is getting failed in Mac with UnsatisfiedLinkError
But I am facing below error. Reason: java.lang.UnsatisfiedLinkError: Unable to load library 'tesseract': Native library (darwin/libtesseract.
Read more >
Tess4J on MacOsX - Google Groups
Hello, I installed Tesseract and all the stuff on my Mac. By running via terminal the command apparently it works. I'm trying to...
Read more >
Native library (darwin/libtesseract.dylib) - Tess4J - SourceForge
I am undertaking a project using OCR in Java and have come across Tess4j. I am using netbeans on a mac and there...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found