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 the eclipse comes with a jar that doesn't seem to be enough, and the fat jar is a plug-in for eclipse, especially if the fat jar can be executed as an executable jar, and it's easier to use other resources such as pictures, and reference outsourcing.
Installation method:
1. Eclipse Online Update method: Help >software updates >search for new features to install>new update site> fill in the name and URL name:f At Jarurl:http://kurucz-grafika.de/fatjar, this is fatjarupdatesite.
2. Eclipse Plugin Installation Method: Download, address in http://downloads.sourceforge.NET/fjep/net.sf.fjep.fatjar_0.0.27.zip?modtime=1195824818 &big_mirror=0, extract the extracted plugins files into the plugins directory in Eclipse, then restart Eclipse to avoid the fat jar being recognized and use the-clean parameter when Eclipse starts.
The method of use (the eclipse that I used is the Eclipse 3.3.2,fat Jar is net.sf.fjep.fatjar_0.0.27):
Method One:
Project Right-click =>export. /= Wizard Select other =>fat jar exporter use problem: A program that has just packaged a SWT with the Fat Jar, the first two packages run successfully after the packaged Jar file, but the prompt cannot find the main class, but the package is the main class I have configured, Look at the meta-inf\manifest in a good bag. MF The first two lines do not have a definition of the main class, manually coupled with the main class configuration after the Jar package can be double-clicked started, it is difficult to understand, go to the Fat Jar Project home page (http://fjep.sourceforge.Net/) to see the next, in the Fat Jar Eclipse Plug-in Tutorial (http://fjep.sourceforge.net/fjeptutorial.html) found my problem, originally in the Configuration Manifest I chose the Select Manifest file option , the default <createnew> should be used, so there's no problem.
Method Two:
Generate a jar package when packaging is complete
Run the jar package:
Enter the directory where the Jar is located, execute the Java-jar jar name command to run
Fatjar in innovative training natural language communication system