【问题标题】:java.library.path errorjava.library.path 错误
【发布时间】:2012-05-08 11:32:50
【问题描述】:

请帮助我:我在使用 j4lOCR 时遇到错误:

 `A fatal error has been detected by the Java Runtime Environment:

  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1006dc21, pid=3488, tid=2576

 JRE version: 7.0_02-b13
 Java VM: Java HotSpot(TM) Client VM (22.0-b10 mixed mode, sharing windows-x86 )
 Problematic frame:
 C  [tess3Wrapper.dll+0x6dc21]

 Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

 An error report file with more information is saved as:
 C:\Azaz-2012\OCR\hs_err_pid3488.log

 If you would like to submit a bug report, please visit:
   http://bugreport.sun.com/bugreport/crash.jsp
 The crash happened outside the Java Virtual Machine in native code.
 See problematic frame for where to report the bug.
'
actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed:in file .\tessdatamanager.cpp, line 55
Java Result: 1

【问题讨论】:

    标签: java ocr


    【解决方案1】:

    发生错误是因为 C++ 代码引发了异常。 Java 不能“包装”那些。

    抛出异常是因为违反了以下断言:

    actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES
    

    常量在tessdatamanager.h 中定义。它与您需要的数据文件有关。确保您使用的数据文件与您的 tesseract 版本匹配。

    【讨论】:

    • 请告诉我如何修复这个错误
    • 正如我所说:“确保语言数据文件与您的 tesseract 版本匹配。”
    • 在放置相同版本的文件后,它仍然无法正常工作并显示相同的错误。
    • 解决方案是什么?其他人可能有同样的问题!
    • 我现在也有同样的问题。解决方案是什么?
    猜你喜欢
    • 1970-01-01
    • 2011-01-04
    • 2014-10-11
    • 2018-01-09
    • 2019-10-25
    • 2011-11-03
    • 2023-02-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多