<https://docs.oracle.com/en/java/javase/19/jpackag...
# getting-started
d
https://docs.oracle.com/en/java/javase/19/jpackage/packaging-overview.html#GUID-C1027043-587D-418D-8188-EF8F44A4C06A Is this the standard way of packaging (creating installers for specific OS) for Kotlin applications?
g
I have never used jpackage before but it seems you can do that. In the Java-World, you normally don’t create an
exe
-File but you deploy the result as a fat
jar
file and use a
bat
-File to start Java with the correct settings. I know this is different from .NET and I personally would like to have a binary-creator more present, but that’s the way it is.
d
thanks for sharing your knowledge. can you refer to any examples. It would be very helpful for me.
p
jpackage works great to distribute a “small” (for JVM) application bundle as an installer, but doesn’t create self-running executables directly https://github.com/paul-griffith/kindling/blob/main/build.gradle.kts#L121 https://github.com/paul-griffith/kindling/blob/main/.github/workflows/release.yml there’s also third parties tools to make distributing JVM applications easier, such as jdeploy: https://www.jdeploy.com/ or conveyor: https://www.hydraulic.software/blog/1-hello.html