“No JVM could be found on your system.”报错
Use exe4j to package the java program into an exe file. When porting to other computers, the error "No JVM could be found on your system."
Use exe4j to package the java program into an exe file. When porting to other computers, the error is as follows
The running environment JRE of java is not installed on the computer
Method 1. Add JRE to the software when packaging the exe file
When using exe4j to package to the following interface, click Advanced Options to select Serch sequence, and add JRE to the software
Method 2. Install JDK on the computer running exe
If JRE is not added to the software when using exe4j for packaging, the computer running exe needs to install JDK by itself
(1) Download and install JDK
Go to the official website https://www.oracle.com/java/technologies/downloads/
Select the JDK version corresponding to the system to download and install
(2) Add environment variables
Variable name: EXE4J_JAVA_HOME
Variable value: the address where the JDK is installed