https://kotlinlang.org logo
#getting-started
Title
# getting-started
d

Dron Bhattacharya

02/18/2023, 4:43 AM
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

Goetz Markgraf

02/20/2023, 6:39 AM
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

Dron Bhattacharya

02/20/2023, 4:47 PM
thanks for sharing your knowledge. can you refer to any examples. It would be very helpful for me.
p

Paul Griffith

02/20/2023, 5:10 PM
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
5 Views