我正在尝试运行文件,但它显示此错误...我在类路径中包含mail.jar,那么可能是错误的原因吗?
error:no class definition found error. javax/mail/part
我没有将代码作为大代码包含在内,也不知道要发布哪个部分。
最佳答案
将其添加到您的构建路径。
Right click your Project -> Properties -> Java Build Path -> Order & Export
After reaching here, libraries what you have used, "select" those libraries and move them to top of list. i.e suppose you have used "xyz.jar" file then following will be your sequence.
[x] xyz.jar [x] someother.jar
Save changes and rebuild your project after cleaning it.
取自No Class Def Found Error (android)
关于java - 错误:no class definition found error. javax/mail/part,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24476111/