Can not use jdk8 with idea 2024.3.2.2
已回答
When I try run a project with jdk8, I got an error:
java.lang.UnsupportedClassVersionError: org/jetbrains/jps/cmdline/Launcher 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
Here is my settings



请先登录再写评论。
Seeing this error (
java.lang.UnsupportedClassVersionError
) means that the version of Java you're using is too old to run a program that was compiled with a newer version of Java. Specifically, the error is telling you that the class fileLauncher
was compiled with Java 11 (class file version 55.0), but you're running the program with Java 8 or earlier (which supports up to class file version 52.0).To fix this, you'll need to update your Java Runtime Environment (JRE) to at least Java 11. If you're using tools like IntelliJ IDEA or Maven, make sure both your development environment and the JRE on your machine are set to the same version. You can download the latest version of Java from the official Oracle website or adopt OpenJDK as well.
15621013210 Did you manage to fix this issue? Which version of IDEA are you using? Please provide a minimal sample project so I can reproduce the issue without including your sensitive code. Thank you! Please upload it to https://uploads.jetbrains.com/ and paste the upload ID here; the uploaded file is only visible to JetBrains employees.
I can't reproduce this issue with a simple Java project with JDK 1.8 under IDEA 2024.3.4 on Windows 11.