First, Introduction
Exe4j is a great tool to package the jar package as an EXE to run. He can integrate the JRE environment with the packaged EXE so that the packaged EXE application can run on a machine that does not have Java installed (provided the EXE is bundled with the JRE).
Ii. Problems and Solutions
When using the EXE4J integrated JRE package EXE, when running the EXE application, the error message is found:
Error Hint: Java Virtual machine discovers java_home corrupt, need to reload or define EXE4J java_home configuration to point to a 32-bit JDK or JRE.
The reason is that exe4j automatically generates an executable file that supports 32-bit JVMS while packaging the jar file as an EXE file.
Workaround:
1. If your JVM is 64-bit, in the process of configuring executable EXE files need to be configured to generate 64-bit, be sure to tick the following settings; This is typically because the computer is a 64-bit system,
So installed 64-bit JRE, packaging EXE need to install 64-bit exe4j software, packaging generated executable file should also be 64-bit.
2. If your JVM is 32-bit, you do not need to configure the executable EXE file to generate 64-bit, that is, do not need to tick the following settings, this is generally because the computer is a 32-bit system,
So installed 32-bit JRE, packaging EXE need to install 32-bit exe4j software, packaging generated executable file should also be 32-bit.
The JVM found at Java_home is damaged. Please reinstall or define exe4j_java_home-to-a installed 32-bit JDK or JRE