【问题标题】:Tess4j error : UnsatisfiedLinkErrorTess4j 错误:UnsatisfiedLinkError
【发布时间】:2017-06-22 19:30:42
【问题描述】:

我正在尝试将 tess4j 用于我的项目。 我在论坛中环顾四周并将dll放入项目中。 tessdata 文件夹也已到位。

我得到一个:Exception in thread "main" java.lang.UnsatisfiedLinkError: The specified module could not be found.

有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: windows tesseract tess4j


    【解决方案1】:

    也许你需要安装 windows vs,Tesseract DLL 是用 VS2013 构建的,因此依赖于 Visual C++ Redistributable Packages,如果你想知道哪个版本,请检查 tess4j.jar 和 readme.html 文件。祝你好运

    【讨论】:

      【解决方案2】:

      如果您使用 eclipse,请将以下 VM 参数 添加到您的运行配置中。
      您必须确保 dll 文件位于项目根文件夹中。我刚刚将其命名为 dll。您还必须将下面一行中的 your_project_name 替换为您的项目的实际名称:

      Djna.library.path=${workspace_loc:/your_project_name}/dlls
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多