I would like to deploy my final build as an EXE with an application Icon.
What is the best way to do this? What is the common practice?
In Windows File Explorer, select Tools->Folder Options... Click File Types tab and select JAR Executable Jar File option. Click Advanced or Change.
Type in jar xf followed by a space followed by the name of the JAR file. This is the command to extract a JAR file. For example, to extract a JAR file called "minecraft", you would type in jar xf minecraft. jar .
Using GraalVM Java applications can be compiled into native standalone executables (will be demonstrated). Native executables of small Java programs startup blazingly fast, use considerably less resources compared to running on JVM and do not even require the JRE or any other kind of runtime apart from the OS.
Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.
http://launch4j.sourceforge.net/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With