Alex Styl
11/03/2022, 6:03 AMimplementation(compose.desktop.macos_x64)
in my dependencies, but when i do ./gradlew runReleaseDistributable
on my M1, the app crashes with “Failed to launch JVM”Thomas
11/03/2022, 12:26 PMThomas
11/03/2022, 12:29 PMimplementation(compose.desktop.currentOs)
. Then your local debug build could still create arm builds if you use arm jdk too.Alex Styl
11/04/2022, 4:41 AMsdk use java 17.0.3-zulu
on IDEA’s terminal
2. double check that a x86_64 JDK is used. I do that by echo $JAVA_HOME
(it prints the. path to the above zulu one) + `cat which java
| file -` (prints /dev/stdin: Mach-O 64-bit executable x86_64
)
3. run ./gradlew clean runReleaseDistributable
Seems like it runs the whole creating distributables, proguard etc, and in the end it fails with:
Exception: java.lang.IllegalStateException thrown from the UncaughtExceptionHandler in thread "main"
Failed to launch JVM
> Task :desktop:runReleaseDistributable FAILED
FAILURE: Build failed with an exception.
Alex Styl
11/04/2022, 5:39 AM./gradlew run
the app works. so something is probably fishy in the way i create the distributableAlex Styl
11/04/2022, 5:44 AM