我正试图在我的java程序中使用tess4j。这是我的代码:
`import java.io.File; import net.sourceforge.tess4j.Tesseract; import net.sourceforge.tess4j.TesseractException; class Test { public static void main(String[] args) Tesseract tesseract = new Tesseract(); try { String text = tesseract.doOCR(new File("captcha.jpg")); System.out.print(text); catch (TesseractException e) { e.printStackTrace(); }
我收到了这些错误信息
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jna/Pointer