简体   繁体   English

NoClassDefFound 错误

[英]NoClassDefFound error

java.lang.NoClassDefFoundError: javax/mail/Authenticator

我已将激活器和邮件 jar 添加到我的 server/deps 目录中,但仍然遇到此问题,我不知道为什么。

Keep in mind NoClassDefFoundError isn't the same as ClassNotFoundException .请记住, NoClassDefFoundErrorClassNotFoundException NoClassDefFoundError means that a class that was available in the classpath at compile time isn't available at runtime. NoClassDefFoundError意味着在编译时在类路径中可用的类在运行时不可用。 Are you sure your jar files are in the runtime classpath?您确定您的 jar 文件在运行时类路径中吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM