"Go" using the export features that eclipse brings

Source: Internet
Author: User

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

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.