Takeshi Hagikura
11/20/2023, 3:19 PMAlexander Maryanovsky
11/20/2023, 3:41 PMTakeshi Hagikura
11/20/2023, 3:59 PMAlexander Maryanovsky
11/20/2023, 5:53 PMMichael Paus
11/20/2023, 8:04 PMcompose.desktop {
application {
mainClass = "MainKt"
javaHome = JAVA_PACKAGE_HOME
...
where JAVA_PACKAGE_HOME could be pointing to your JBR.Alexander Maryanovsky
11/20/2023, 8:23 PMjavaHome
in application
. I just have this in IDEA:javaHome
is probably the more robust way.Takeshi Hagikura
11/21/2023, 10:57 AMjavaHome
as the JBR in Android Studio,
compose.desktop {
application {
mainClass = "MainKt"
javaHome = "/Applications/Android_Studio_Preview_iguana_canary13.app/Contents/jbr/Contents/Home/"
...
packaging from the command line still no luck for me.
./gradlew :desktop:packageDistributionForCurrentOS
* What went wrong:
Execution failed for task ':desktopApp:checkRuntime'.
> Failed to check JDK distribution: 'jpackage' is missing
JDK distribution path: /Applications/Android_Studio_Preview_iguana_canary13.app/Contents/jbr/Contents/Home
Alexander Maryanovsky
11/21/2023, 11:00 AM~/Library/Java/JavaVirtualMachines/jbr-17.0.9-1/Contents/Home/bin
does have the jpackage
and jlink
binariesTakeshi Hagikura
11/21/2023, 11:49 AMjlink
and jpackage.
* What went wrong:
Execution failed for task ':desktopApp:checkRuntime'.
> Failed to check JDK distribution: 'jlink', 'jpackage' are missing
JDK distribution path: /Library/Java/JavaVirtualMachines/jbr_jcef-17.0.8.1-osx-aarch64-b1059.3/Contents/Home
Alexander Maryanovsky
11/21/2023, 11:50 AMTakeshi Hagikura
11/21/2023, 12:31 PMjlink
and jpackage.
Hmm, but the app built with ./gradlew :desktopApp:packageDistributionForCurrentOS
or ./gradlew :desktopApp:runDistributable
doesn't seem to have JBR available.
JBR.isAvailable()
returns falseAlexander Maryanovsky
11/21/2023, 12:33 PMJBR.isAvailable()
? It returning false seems to be a contradictionTakeshi Hagikura
11/21/2023, 12:36 PMAlexander Maryanovsky
11/21/2023, 12:40 PMSystem.getProperty("java.vendor")
Takeshi Hagikura
11/21/2023, 12:52 PMjavaHome
is set to the downloaded path to JBR. Setting JAVA_HOME to the directory results in the same
compose.desktop {
application {
mainClass = "MainKt"
javaHome = "/Users/thagikura/Library/Java/JavaVirtualMachines/jbrsdk-17.0.9/Contents/Home"
Michael Paus
11/22/2023, 10:29 AMTakeshi Hagikura
11/25/2023, 1:00 PMMichael Paus
11/25/2023, 1:42 PMIntelliJ IDEA 2023.3 Beta (Community Edition)
Build #IC-233.11799.67, built on November 22, 2023
Runtime version: 17.0.9+7-b1087.7 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.1.1
does not seem to contain jpackage/jlink. Which version did you use?Takeshi Hagikura
11/25/2023, 2:04 PMFile -> Project Structure -> SDKs -> Plus button
from Intellij IDEA
IDEA version
IntelliJ IDEA 2023.2.5 (Community Edition)
Build #IC-232.10227.8, built on November 9, 2023
Runtime version: 17.0.9+7-b1000.46 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 10
Metal Rendering is ON
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true
installed JBR version
17.0.9 (JetBrains s.r.o. 17.0.9+7-b1087.7)
Michael Paus
11/25/2023, 4:11 PMjava.vm.name: OpenJDK 64-Bit Server VM
java.runtime.version: 17.0.9+7-b1087.7
os.name: Mac OS X
os.arch: x86_64
java.vendor: JetBrains s.r.o.
Is this runtime now also compatible with Jewel? I haven’t had the time to try that yet.Takeshi Hagikura
11/25/2023, 4:24 PM