hello, everyone! How to set up the right JDK to ru...
# compose-desktop
a
hello, everyone! How to set up the right JDK to run the distributable with?
m
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
...
    }
}
a
thank you! That helped