Installation and use of the Eclipse plug-in fat jar

Source: Internet
Author: User

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.