Intellij keeps throwing this error.
java.lang.UnsupportedClassVersionError: org/jetbrains/idea/maven/server/RemoteMavenServer36 : Unsupported major.minor version 52.0
Exception in thread "main"
Note: Tried jdk difference mentioned in other post. Still, no luck.
CodePudding user response:
It is known issue in 2022.2 version, see IDEA-298673 Error importing maven project (bound to max JDK 1.7)
The workaround is to define 1.8 JDK for the Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Importing | JDK for importer:.
In later IDE versions, IDE will automatically fallback to the internal JDK for Maven import. Note that this JDK has no relation to the Project JDK which is used to build and run the application.