Test on the generation of the eclipse of pack jar and the jar package

The following is the main class package comprising the steps of deriving jar package:

1. Select the eclipse class or package you want to export, right-click and select Export sub-options;
2. In the dialog box, select the JAR file, click the Next;
3. Select the text box at the back of the JAR file you want to generate a jar of position and name, pay attention to the Export generated class files and resources and Export java source files and resources check mark in front, click next;
4. click the next button twice, reaching the JAR Manifest Specification. Note that in the back of the bottom of the Main class of text entry box, select the type of your jar package. Click Finish, Finish.

Jar test pack:
1.win + R & lt cmd input into the text box
2. cd / d jar into the directory packet is located
3.java -jar xx.jar where xx is the name of the jar package

Released two original articles · won praise 0 · Views 43

Guess you like

Origin blog.csdn.net/qq_44718500/article/details/104798279