@Thomas I did that, but still the same ‘failed to launch JVM’.
What i do is:
1. use sdkman to install a Intel jdk:
sdk 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.