Tried to play with the Gitlab issues examples and ...
# compose-desktop
d
Tried to play with the Gitlab issues examples and got the following exception when running desktop application:
> Task desktoprun
Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedClassVersionError: org/jetbrains/skiko/Library has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
1
I use macOs with both jdk8 and jdk14 installed and jdk14 is active according to terminal:
$ java -version
openjdk version "14.0.2" 2020-07-14
I got a hunch somehow jdk8 is used for compiling but I don't know how to force jdk14
m
d
Thanks, will try it Eventually I got it running by switching the project bytecode version from 8 to 14.
m
I’ve got similar issue with running from cli via gradle, it was working fine for me with IDEA, so thats I was searching for gradle related solution for the issue, this java build chain is totaly new…
o
Set Gradle JVM to 11 or later.
👍 2
m
you probably mean
-Dorg.gradle.java.home
if I want to run gradle from terminal
also switching with sdkman (macos Big Sur) works well
d
thanks, Will try those too. for now I have it working and I'm impressed with compose for desktop. will ambush my teammates later this week with a desktop module in our multiplatform app 😁
u
didn’t work for me.