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.