Eclipse packaging (export) JAR file introduction (2)-use the Eclipse plug-in fat jar

Source: Internet
Author: User

Use the Eclipse plug-in fat jar

1. download and install the plug-in fat jar

:Http://fjep.sourceforge.net/

If you install the Eclipse plug-in, I believe everyone is familiar with it.

If the installation is successful, you can see the fat jar preferences option in window-preferences in the eclipse option bar.

2. Right-click-export-other-fat jar exporter and next in any part of the project

3. Select the project to export and click

4. Edit option, next

 

To generate a jar executable file, select a class containing main in "Main class.

5. Select the files and resources to be packaged and finish

 

Unlike the export of eclipse, the selected file is a compiled class file. For some classes, multiple class files may be generated, which makes it very difficult to select.

Save settings. Save the settings as a *. fatjar file to quickly generate a jar file or modify the configuration.

"Export ant" to export the ant file. You can use ant to build the JAR file later.

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.