在使用 PDFBox 外部 jar 来处理 PDF 文档时,出现 NoClassDefFound 异常
我正在为我的项目使用 Eclipse IDE,其中我已将“pdfbox-1.6.0.jar”添加到项目的外部 jar 中。当我编写导入此 jar 文件的 API 的代码时,Eclipse 没有显示任何异常。但如果我运行我的程序,它会显示“NoClassDefFound”异常。 有人可以帮我解决这个问题吗...?
I am using Eclipse IDE for my project, where i have added "pdfbox-1.6.0.jar" into External jars of the project. When i wrote code importing the APIs of this jar file, Eclipse didn't show any exceptions. But if i run my program it shows "NoClassDefFound" Exception.
Can some one help me on this...?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看PDFBox的文档,很可能存在运行时依赖。如果您发布更完整的问题将会有所帮助
Check the documentation of PDFBox, it is likely that there are runtime dependencies. It would help if you post a more complete question