Tess4J 的 NoClassDefFoundError
我正在尝试使用超立方体从图像中读取文本。我正在导入 jar 文件,因为我不知道如何使用 maven。然而,由于某种原因,它给了我一个 NoClassDefFoundError 。有谁知道如何解决这个问题?谢谢!
我已附上我的代码的图像。 代码
I am trying to read text from an image with tesseract. I am importing the jar file as I don't know how to use maven. For some reason however, it is giving me a NoClassDefFoundError. Does anyone know how to fix this? Thanks!
I have attached the image of my code. Code
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
test4j-3.4.8.jar
已编译和测试依赖项,如您在此 链接。NoClassDefFoundError
是由于缺少依赖项而导致的,您忘记将其包含在专门针对com.sun.jna.Pointer
的程序中,该依赖项是jna-5.10.0 的一部分.jar
。如果您不使用 maven 导入 jar 文件,请确保所有依赖项都包含在内。但建议使用maven来管理你的依赖关系,这样你就可以避免此类相关错误。
test4j-3.4.8.jar
have compiled and test dependencies as you can see on this link. TheNoClassDefFoundError
is due to missing dependency that you forget to include in your program specifically forcom.sun.jna.Pointer
which is part ofjna-5.10.0.jar
.If you will not use maven to import the jar file, make sure all dependencies are all included. But it's advisable to use maven to manage your dependencies so that you can avoid such related errors.