pablisco
06/05/2024, 12:23 PMpackageDistributionForCurrentOS
with corretto-22, but it obviously complains about not having the JBR when I try to run the app.
xception in thread "main" java.lang.IllegalStateException: DecoratedWindow can only be used on JetBrainsRuntime(JBR) platform, please check the document <https://github.com/JetBrains/jewel#int-ui-standalone-theme>
But I can't run the package task (on the IDE) using JBR because it's missing jpackage.
> Failed to check JDK distribution: 'jpackage' is missing
JDK distribution path: /Users/su/Applications/Android <http://Studio.app/Contents/jbr/Contents/Home|Studio.app/Contents/jbr/Contents/Home>
I'm not sure why it's looking at AS JDK, as I'm using IntelliJ...
Is there a way I'm missing where we need to specify the runtime to be embed?seb
06/05/2024, 12:52 PMpablisco
06/05/2024, 12:55 PMMichael Paus
06/05/2024, 2:28 PMcompose.desktop {
application {
javaHome = <Your JBR here>
What I am not absolutely sure about is whether this is also used for the packaging task but I think it’s not.
If this is true, you can use a normal JDK for the build and specify your JBR as above.seb
06/05/2024, 2:38 PMLamberto Basti
06/05/2024, 4:26 PMkotlin {
jvmToolchain {
vendor = JvmVendorSpec.JETBRAINS
languageVersion = JavaLanguageVersion.of(17)
}
}
You might also want to use the foo-jay jdk downloader for letting Gradle download the selected jdk:
// Settings.gradle.kts
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
I am not sure if it can download the JBR tho.pablisco
06/05/2024, 4:42 PMLamberto Basti
06/05/2024, 4:44 PMpablisco
06/05/2024, 4:51 PMseb
06/05/2024, 4:54 PMseb
06/05/2024, 4:54 PMseb
06/05/2024, 4:54 PMpablisco
06/05/2024, 4:56 PM