Menu

java.lang.UnsatisfiedLinkError: Can not find the specified module

2018-07-27
2018-12-11
  • Agustin Blanco

    Agustin Blanco - 2018-07-27

    Hi everyone, i am new here and with Tess4J.

    I have a program that works fine in Eclipse but when making a runnable Jar it shows the error "Can not find the specified module"

    In order to make Tess4J worked in Eclipse i have the tessdata folder and in the root directory the files:
    liblept168.dll
    libtesseract302.dll
    tessdll.dll
    With that eclipse runs perfectly but when making it a runnable jar it does not work.

    Can anybody help me here?
    Thanks from Argentina.

     
  • Quan Nguyen

    Quan Nguyen - 2018-07-27

    That's a very old version! Try with the latest ones; you will not have to deal with those DLLs directly.

    Check out the Tutorial.

     
  • Gianluigi Ferraris

    Hi everyone, i'm new here and first i'd like to greet you.
    I worked yet with older version of Tess4j and i've never had problems.
    Now i'd like to develop a new application based on latest Tess4J version and i'm having the same issue.
    The developing environment is based on Windows Server 2012 R2 ( Italian ) , NetBeans 8.2, java 8 and VC 2015 redist 32 and 64 bit, the same environment on wich other tess4j projects worked fine.
    As for other projects, I downloaded the entire group of jar from :
    https://jar-download.com/artifacts/net.sourceforge.tess4j

    In order to find out more on the issue i also specified explicitly java.io.tmpdir with System.setproperty to a folder with all permissions.
    This gave me evidence that two subfolders were created:

    tess4j/win32-x86-64 containing libtesseract400.dll and liblept1760.dll
    jna-146731693 containing jna1066623758417241505.dll and jna1066623758417241505.dll.x

    After explicitly try to load the libtesseract400.ddl with System.load the result was the same, the DLL could not be initialized.
    Now i'm triyng to figure out the possible cause but i though to share my case in hope to help someone else having the same issue.

     
    • kailash sah

      kailash sah - 2018-12-11

      I also facing same issue but on Japanese machine. Below is the error after loadlibrary
      java.lang.UnsatisfiedLinkError: 指定されたモジュールが見つかりません。
      I am using Jar 4.2.2 version having below file -
      liblept1760.dll
      tesseract400.dll
      please suggest if I missing anything?

       
  • Quan Nguyen

    Quan Nguyen - 2018-08-29

    A few users have reported loading issues with libtesseract400.dll, but we were unable to reproduce it on several of our Windows machines.

    Could it be the AVX optimization code in Tesseract 4.0x that cause the loading issue on some machines?

    https://github.com/charlesw/tesseract/issues/427

    You may want to consider compiling your own Tesseract DLL to use with Tess4J.

     

Log in to post a comment.