I have a functioning jlink image (including a custom jre). It works fine. But for my use case i need to package all files of the jlink image into a single all containing executable (.exe).
I was able to generate an all containing .msi installer using jpackage of OpenJDK 14, which is not bad but not the solution needed.
Is there currently a way to package a jlink image into an windows executable, so that i can just run it without anything else needed?
You can use Launch4j for creating a .exe file from your image. The generated .exe file works as a wrapper on and is not a single all containing executable, but you can use your jlink image plus this .exe in Inno setup or some other similar tools to create a single .exe installer. Note that Launch4j needs a jar file to create .exe file. But this jar file is never used and the jar file in the jlink image is used.
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