See also: http://www.cnblogs.com/lanxuezaipiao/p/3291641.html
Fat Jar Eclipse Plug-in is a gadget that can package all the resources of Eclipse Java project into an executable jar file, so that you can easily complete a variety of packaging tasks, and we often come to the jar package, But Eclipse's own packaged jar doesn't seem to be enough, and the fat jar is a plug-in for eclipse, especially fat jars that can be made into executable jar packages, and are easier to use for other resources such as pictures and for outsourcing.
Installation method:
1. Eclipse Online Update method
Help > Install New software > Add,
Name:fat Jar
Location:http://kurucz-grafika.de/fatjar
2. The Eclipse Plugin manual installation method
: http://downloads.sourceforge.net/fjep/net.sf.fjep.fatjar_0.0.27.zip?modtime=1195824818&big_mirror=0
Copy the files from the extracted plugins to the plugins directory in the Eclipse installation directory, and then restart Eclipse.
How to use:
Step 1: Right-click Project selection Buile Fat Jar
Step 2: Configure the jar file storage directory, main main file, etc., such as
Step 3: Select the third-party jar package you want to use
The final finish, which generates the jar file we want, is very handy.
After packing, the command line executes, if the jar package does not specify a run file, run as follows:
which Org.ope Nadaptor.util.MD5Util for Run class name, f:\\ftp1\\ Test444.pdf and f:\\ftp1\\ TEST444.PDF.MD5 two parameters for main function
Java-classpath.; F:\install\openadaptor-3.4.7\lib\openadaptor.jar Org.openadaptor.util.MD5Util f:\\ftp1\\test444.pdf f:\\ftp1\\ Test444.pdf.md5
If the jar package specifies a running file, run as follows:
Among them http://192.168.100.169:9000/ws/Jaxws/filetransferservice1, F:/ftp/test.txt, d:/share/portal_esb/ Ftp/test.txt 3 parameters that are run by the main function respectively
Java-jar Cxfwebservice_fat.jar Http://192.168.100.169:9000/ws/jaxws/fileTransferService1 f:/ftp/test.txt d:/share/ Portal_esb/ftp/test.txt
Eclipse packages A Java project that references a third-party jar package into a jar file