1. Project Introduction
This project uses an ordinary JAVA project created by IntelliJ IDEA, which depends on third libraries and jar packages. This project will be packaged to generate an exe executable program, so record the packaging steps.
The packaging step is mainly divided into two steps:
1. Generate the java project into a jar package;
2. Use exe4j to generate the exe executable program from the generated jar package;
2. Java project generates jar package
The following is the structure of the entire project .
First, File-Project Structure
opens the Project Structure panel. Select Artifacts-JAR-From modules with dependencies...
Be sure to pay attention to the options here, otherwise you will not be able to find the main entry of the program when packaging the exe.
The interface effect after clicking OK.
After clicking OK, look for it at the top