【发布时间】:2012-02-24 01:23:31
【问题描述】:
可能重复:
My code compiles in Eclipse but I get a ClassNotFound at runtime how can I fix it?
我在小程序中引用 Joda Time,当我在 Eclipse 中调试时,一切都按预期运行。但是,当我导出我的 jar 文件时出现错误
java.lang.NoClassDefFoundError: org/joda/time/ReadableInstant
在运行时。
我错过了什么?
【问题讨论】:
-
非常感谢,我的问题是重复的。最后,我在对重复问题的回复中的一个建议中使用了 FatJar。感谢您为我指明正确的方向。