Reprint Address: http://www.xuebuyuan.com/759047.html
Eclipse Package (Export) Jar file Introduction (a) – Use the Eclipse-brought export featureOctober 02, 2012 ⁄ general ⁄ a total of 517 characters ⁄ font size small medium big ⁄ comments off
Generate jar files using Eclipse's own export capabilities
1. Right-click anywhere in the project-export-java-jar File,next
2. jar file options, Next
Note the option "Compress the contents of the JAE file" (compressed jar files), if the program needs to read and write to the resource file, note whether the resource file is compressed.
3. Jar packaging options, Next
Note tick the "Save the description of this jar in the workspace" (Save the jar description file in the workspace), which is useful the next time you need to change the options
4. Jar list option, Finish
Whether to generate a manifest file or, if you need to generate a jar executable, select a class containing main in "main class".
After finish, a jar file is generated in the development path, and if you execute the JAR file, double-click to run.
If a jar description file is generated on the tick, then a *.jardesc file will be generated in the development path, and in the workspace, right click on the *.jardesc
Select "Create Jar" to quickly generate the jar file according to the configuration, select "Open Jar Packager", open the Jar Configurator and modify the packaging options. So when you run the Export Jar Wizard for the first time, it's best to tick the Save configuration option for later modification.
"Go" using the export features that eclipse brings