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