关于java.lang.NoClassDefFoundError

解决方法1:

查看有没有把第三方jar包导进Build path里,应该确保lib和referenced libraries里都有 

具体方法:把jar包复制到lib里,分别add to build path,再把Lib设为source folder

解决方法2:

查看jar包导出过程是否正确,要确定导出的是runnable jar file,而不只是jar file

这篇文章里有关于二者区别eclipse 中的 jar file 和 runnable jar file的区别

原文地址:https://www.cnblogs.com/lucile-w/p/4418132.html