Eclipse jar package

Source: Internet
Author: User

1. Eclipse Packaging

Right-click the project and choose export> JAR File> next:

Browse: storage location

 

> Next:

Browse: entry (main)

> Finish.

 

 

2. Fat jar plug-in

Download the plug-in and put the folder net. SF. fjep. fatjar_0.0.31 (may have different versions ..) Copy to the eclipse folder plugins.

Right-click the project and choose:

 

> Build fat jar

Browse: storage location

Browse: entry (main)

 

> Finish.

 

 

3 ,! Note: It is best to write an absolute address for the image or put a jar package in the same directory, otherwise it will not be displayed.

 

4. Run the jar package: ① double-click the jar package (JDK needs to be set in advance); ② cmd: Java-jar F: \ Lib. Jar run (the path should not contain Chinese characters ).

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.