Here's how to take your Java programs and convert them into fully self-contained EXEs. You make a single file, the user double-clicks it, and the program just runs. The user does not need Java, and they don't need to install anything.
The process involves four steps:
1. With Eclipse, export your Java program as a "Runnable JAR File."
2. With Launch4J, wrap that JAR file as an EXE.
3. With 7-ZIP, bundle the JRE with that EXE.
4. With 7-ZIP SFX Maker, turn that into a self-extracting EXE that automatically runs your Java program.
The resulting file is a completely self-contained program.
If your users already have Java installed, you can skip the last two steps and just use the EXE from Launch4J.
14 окт 2024