1. Select the project to go around the jar file, right click "Export";
2.next
In the drop-down list under Launch configuration, select the main class to run when the program starts ( that is, the class with the main method in the project, project portal )
In the "Export destination" under the "Browse" button to select the storage path of the jar, and enter the jar file name;
If the program relies on other packages, select "Package required libraries into generated JAR" or "Copy required libraries into a sub-fol" at "Library handling" Der next to the generated JAR ", if you choose the latter, when you export, you will copy the required package to a directory, and then refer to the jar package, you have to be copied to the directory where the Jar is located
Very simple, but long time no action will forget, or make a mark for the next operation.
Eclipse Export executable jar file