3rd Party Library 抛出 NoClassDefFoundError 而不给出类名
我正在尝试将第三方库集成到现有应用程序中;它编译和构建没有问题,但在执行过程中给出了java.lang.NoClassDefFoundError
。
问题是错误来自我没有源代码的库,并且错误没有告诉我找不到哪个类。
这个可以调试吗?有什么建议吗?
(这是 Java 1.4、Eclipse、Ant 和 Tomcat 设置)
I'm trying to integrate a 3rd party library into an existing application; it compiles and builds with no problems, but during execution gives a java.lang.NoClassDefFoundError
.
The problem is that the error comes out of the library to which I don't have the source, and the error doesn't tell me what class couldn't be found.
Is it possible to debug this? Any advice?
(It's a Java 1.4, Eclipse, Ant and Tomcat set-up)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以安装 JD-Eclipse (或任何其他反编译器),启动调试器,然后逐步执行,直到找到错误。
该插件应该允许您进入第三方 .class 文件,就好像它们是附加源一样(假设它们没有被混淆)。
You can install JD-Eclipse (or any other decompiler), fire up your debugger, and step through until you find the error.
The plugin should allow you to step into the third party .class files as if they were attached source (assuming they're not obfuscated).