Unable to compile JVM app with the new libraries 1.x.x
See original GitHub issueHello!
It’s great to see the new updates in PreCompose - thank you! 🙂
I’m trying to test the new updates, but when I try to run the desktop app I’m getting:
Error: LinkageError occurred while loading main class MainKt
java.lang.UnsupportedClassVersionError: MainKt has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
I’m able to replicate this error in the sample project, by using the remote version of PreCompose, instead of the local one.
Briefly, on sample/desktop/build.gradle.kts file, I’ve changed the implementation to:
implementation("moe.tlaster:precompose:1.1.4")
I also tried the different versions that you’ve released starting with 1.0.0.
I tested different Java versions, from older to newer and the only thing that changed was the 55.0
number, which was continuously updated to the one that I was using.
Any idea, on what might be wrong?
Issue Analytics
- State:
- Created a year ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Android Studio Error "Android Gradle plugin requires Java 11 ...
The solution is to install the Java 11 or higher. The second solution is to make a symlink in the folder ~/Library/Java/JavaVirtualMachines/ to ......
Read more >rJava fails to load · Issue #2254 - GitHub
When I run. > library(rJava). Unable to find any JVMs matching version "(null)". No Java runtime present, try --request to install.
Read more >Known issues with Android Studio and Android Gradle Plugin
This error occurs on Linux-based platforms when starting the native debugger. It indicates that one of the libraries required by the native debugger...
Read more >Building Java & JVM projects - Gradle User Manual
Gradle uses a convention-over-configuration approach to building JVM-based projects that borrows several conventions from Apache Maven.
Read more >Transition from Java 8 to Java 11 - Azure - Microsoft Learn
application to run on Java 11 more quickly by focusing on the minimum that needs to be done. Most of the problems you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also face the same problem when using IntelliJ with JDK 17, it errors everywhere, but compile seems to be fine. It seems that JDK 17 is just too early to use, back to JDK 11 is better.
The latest version should work without any problem. Closing as stale