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
Pablichjenkov
05/03/2024, 4:32 PM
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
martmists
05/03/2024, 4:33 PM
Use java 21 to run the application. Java 17 only supports up to format 61.