IDEA ordinary JAVA projects are packaged into exe executable programs [with third-party jar dependencies]

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 .
Insert image description here
First, File-Project Structure
Insert image description here
opens the Project Structure panel. Select Artifacts-JAR-From modules with dependencies...
Insert image description here
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.
Insert image description here
The interface effect after clicking OK.
Insert image description here
After clicking OK, look for it at the top

Guess you like

Origin blog.csdn.net/nanjumufeng/article/details/124847142