Idea Package Java executable jar Package

Source: Internet
Author: User

1. Right-click on the item and Open Module Settings

2, artifacts---------from modules with dependencies ...

3, main class is the main method of your project ( script ), is the class to run, choose a

4, for example, set meta-inf/manifest. Mf

!!!!! Remember, you cannot use the default (at least I use the default is not successful)!!!!!

6, select the root directory of your project, must be placed in the root directory

7, set up is this, about the two options for JAR files from libraries:

Select the first one, after the package is a jar package

Select the second, after the package is a jar package, take out the jar package for your project, a personal recommendation of the second

8, you can click OK when you finish setting up

9, this page, Build on make tick, the other is not the same also OK

10, last step, build artifacts ...--xxx.jar---build

11, copy the path here to find the jar package.

Idea Package Java executable jar Package

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.