2012-05-08 39 views
0

請大家幫幫我:我收到錯誤當使用j4lOCR:的java.library.path錯誤

`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 

回答

0

錯誤發生,因爲C++代碼拋出異常。 Java不能「包裝」這些。

拋出異常,因爲下面的斷言被違反:

actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES 

恆定在tessdatamanager.h定義。它與你需要的數據文件有關。確保您使用的數據文件與您的tesseract版本相匹配。

+0

你可以告訴我解決方案來擺脫這個問題.. – Azuu

+0

plese告訴我如何修復bug – Azuu

+0

正如我所說:「確保語言數據文件與您的tesseract版本相匹配。」 –

相關問題