This program is a demonstration on the Spring Framework and Spring Native to build Spring based native apps (.exe).
- Download and install GraalVM 22.3.
- Add GraalVM 22.3's
binpath toWindows Environment VariablesPath. - Add GraalVM 22.3's root directory path to
Windows Environment VariablesasJAVA_HOME. - Download and install Maven.
- Add Maven's root directory path to
Windows Environment VariablesPath.
Before building the native executable, you first need to install the Developer Command Prompt, you can use the Using GraalVM and Native Image on Windows 10 as a guide for your setup.
build the native
To build the native executable, just run the command below in the Developer Command Prompt:
mvn clean package -Pnative