I am trying to consume a Compose Multiplatform lib...
# compose-desktop
a
I am trying to consume a Compose Multiplatform library I published and I am having an error on Desktop. (all other platforms work great) the error is "MenuKt has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0 How do i resolve this? do i need to change something in the library or is it something on the way i run the jvm app?
p
Judging by what the exception says you might be restricted to only consume the library from a specific version of java(unless you recompile it with a lower jdk version). I am not sure how the java
.class
binary interface version match to the JVM/JRE version, must be somewhere on the Internet 🤷‍♂️
m
Use java 21 to run the application. Java 17 only supports up to format 61.
👍 1
s
Or better yet, compile with Java 17
👆 1
a
thank for the input folks. resolved it by compiling with Java 17. Continued the chat at https://kotlinlang.slack.com/archives/CJLTWPH7S/p1714752771580799
m