Install and use the Eclipse plug-in fatjar

Source: Internet
Author: User
It was very slow to start Tomcat today. It took more than one minute to start Tomcat. jar, pager-tag.jar are deleted, instead of their source code, Tomcat started because the JAR file is not found to re-compile, so particularly slow. Therefore, I copied struts. jar to Web-info/lib, and now the lack of pager-tag.jar. (In fact, the source code compilation of pager-tag is not slow, mainly because the struts source code compilation is slow .) Program In fact, eclipse has an export tool for packaging, your project => export => JAR file => select the package you need one by one => write the target JAR file name => write the target directory => and generate a new jar.

In fact, this has already met my requirements. During the process of viewing how eclipse is packaged, I found that there is a fatjar plug-in with more powerful functions and can put the required resources into a jar. So I downloaded a,: http://sourceforge.net/project/showfiles.php? Group_id = 115990 & package_id = 125924
After decompression, it is... /plugins/(net ...) under plugins (net ..) copy the folder to eclipse plugins and restart eclipse3.1. If you see "Windows => prefernce => fat jar preference", the installation is successful. If not, delete D:/eclipse310/configuration/org. eclipse. update/platform. XML file (this file can be automatically generated) does not need to worry about the previous plug-in will disappear, it is okay.

At first, I couldn't find how to use it. Later, I saw your project => export .. => the wizard contains fat jar => which is really convenient to use.

Summary:
Generally, you can package Src in export => JAR file.
To package SRC resources together, you must use fatjar => export... => fatjar.

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.