【问题标题】:tess4j not working on web application with 64 bit JDKtess4j 不适用于 64 位 JDK 的 Web 应用程序 【发布时间】:2015-04-28 06:27:33 【问题描述】: !java.lang.Error: Invalid memory access at net.sourceforge.tess4j.TessAPI1.TessBaseAPIGetUTF8Text(Native Method) at net.sourceforge.tess4j.Tesseract1.getOCRText(Unknown Source) at net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source) at net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source) at net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source) at net.sourceforge.tess4j.Tesseract1.doOCR(Unknown Source) 【问题讨论】: 标签: tomcat jakarta-ee ocr tesseract tess4j 【解决方案1】: 该错误通常归因于 Tesseract 未找到其 tessdata 文件夹。尝试使用setDatapath 方法指向它。 【讨论】: 成功了,感谢 nguyenq 的快速回复。