hello, everyone! How to set up the right JDK to run the distributable with?
m
Michael Paus
01/30/2024, 11:16 AM
You can do that in the Gradle file.
Copy code
val JAVA_PACKAGE_HOME = <path to the Java home you want to use for packaging>
project.logger.lifecycle("JDK used for packaging: $JAVA_PACKAGE_HOME")
compose.desktop {
application {
mainClass = "MainKt"
javaHome = JAVA_PACKAGE_HOME
...
}
}