Error opening Java 7 project

已回答

I have an existing Maven project that needs to be compiled with Java 7.
I open it in IDEA and change JDK to 1.7. After closing and opening project I get this error:
 java.lang.UnsupportedClassVersionError: org/jetbrains/idea/maven/server/RemoteMavenServer36 : Unsupported major.minor version 52.0
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
 at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
 at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

评论操作 固定链接

It's a known regression in the most recent IDE update, please follow https://youtrack.jetbrains.com/issue/IDEA-298673/Error-importing-maven-project-bound-to-max-JDK-17 for more details.

You can try the previous release as a workaround until it's fixed: https://www.jetbrains.com/idea/download/previous.html.

0

请先登录再写评论。