When you recently packaged a project with eclipse as an executable jar package, you run the generated jar with a noclassdeffound error when you use the packaged functionality that comes with eclipse.
Project running directly in Eclipse is no problem. So it must be classpath when packing.
Online check, many netizens recommend Fat Jar This plugin, the official online display A simple version of the Fat-jar is integrated into Eclipse 3.4.
It is more reassuring to install a complete version of the Fat jar directly.
The specific installation process is a complete reference to this blog, there are also problems in the blog.
http://mclspace.com/2015/05/10/Fatjar-install/
Use the process to refer to the article.
Http://jingyan.baidu.com/article/da1091fbd7dae1027849d63b.html
After you successfully install the Fat jar and package The project, the program can finally execute correctly.
---------------------------------------------------------------------------------------------
Add:
The project was successfully packaged for the first time with a fat jar, but some code was modified to make the second package fail, or the same noclassdeffound error occurred.
Solution: Select project in Eclipse, click Clean, and then execute the package, no problem.