# Error initializing Tesseract.

**URL:** <https://forum.knime.com/t/error-initializing-tesseract/17189>\
**Category:** KNIME Extensions\
**Tags:** image-processing\
**Created:** [July 26, 2019, 5:18pm UTC](https://forum.knime.com/t/error-initializing-tesseract/17189 "2019-07-26T17:18:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![viviancui](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/v/bc79bd/32.png) [@viviancui](https://forum.knime.com/u/viviancui)\
**Post date:** [July 26, 2019, 5:18pm UTC](https://forum.knime.com/t/error-initializing-tesseract/17189/1 "2019-07-26T17:18:58Z")

</div>

Hi there,

I am trying to use Tess4j in me project and successfully installed the KNIME Image Processing extension and the Tess4j node shows up.

However, the node is not working and I got this error message every time open KNIME:

```auto
ERROR NativeLibBundleActivator /Applications/KNIME 4.0.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib: dlopen(/Applications/KNIME 4.0.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib, 1): Library not loaded: /usr/local/lib/liblept.4.dylib
  Referenced from: /Applications/KNIME 4.0.0.app/Contents/Eclipse/plugins/org.knime.knip.tess4j.bin.macosx.amd64_1.3.3.v201807091457/lib/macosx/amd64/libtesseract.3.dylib
  Reason: image not found
ERROR NativeLibBundleActivator Could not load org.knime.knip.tess4j

```

Also, I got this error message every time run the Tess4j node:

```auto
ERROR Tess4J 2:10 Error initializing Tesseract.
ERROR Tess4J 2:10 Execute failed: Unable to load library 'tesseract': Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/KNIME 4.0.0.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar)
ERROR Tess4J 2:10 Error initializing Tesseract.
ERROR Tess4J 2:10 Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

```

I’m using MacOS, KNIME 4.0.0

Thank you so much in advance! I really appreciate any suggestions.

---

<div class="post-metadata">

**Author:** ![garnonay](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/g/b5a626/32.png) [@garnonay](https://forum.knime.com/u/garnonay)\
**Post date:** [September 17, 2019, 8:27pm UTC](https://forum.knime.com/t/error-initializing-tesseract/17189/2 "2019-09-17T20:27:32Z")

</div>

Hello,

I’m having the same problem when running a Tess4J node.

ERROR Tess4J 0:2 Error initializing Tesseract.  
ERROR Tess4J 0:2 Execute failed: Unable to load library ‘tesseract’: Native library (darwin/libtesseract.dylib) not found in resource path (/Applications/KNIME 4.0.1.app/Contents/MacOS//…/Eclipse/plugins/org.eclipse.equinox.launcher\_1.4.0.v20161219-1356.jar)  
ERROR Tess4J 0:2 Error initializing Tesseract.  
ERROR Tess4J 0:2 Execute failed: Could not initialize class net.sourceforge.tess4j.TessAPI

I’m using MacOS, KNIME 4.0.1

Can someone please help?

Thanks.

---

<div class="post-metadata">

**Author:** ![CedricB](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@CedricB](https://forum.knime.com/u/CedricB)\
**Post date:** [November 12, 2019, 3:09pm UTC](https://forum.knime.com/t/error-initializing-tesseract/17189/3 "2019-11-12T15:09:10Z")

</div>

Hello,  
I get the same error messages, and I am also on MacOs Mojave 10.14.6, Knime 4.0.0, and Tess4J Integration 1.3.3.v201907171304 .  
It seems that this issue on MacOS dates from Feb 2014 as shown in this thread : [Tesseract Node not working](https://forum.knime.com/t/tesseract-node-not-working/3620)  
I found that there is a general issue of Tess4J on MacOS : apparently MacOS lib is not in the package. see more here: [https://stackoverflow.com/questions/21394537/tess4j-unsatisfied-link-error-on-mac-os-x](https://stackoverflow.com/questions/21394537/tess4j-unsatisfied-link-error-on-mac-os-x)  
(i have not tested yet the solution posted on stackoverflow)

Thanks in advance  
Cedric

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 2, 2023, 9:12pm UTC](https://forum.knime.com/t/error-initializing-tesseract/17189/4 "2023-06-02T21:12:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
