Wrong java runtime error after IntelliJ IDEA installation

Running IntelliJ IDEA Community Edition after installation, I got the this error message:

Exception in thread “main” java.lang.UnsupportedClassVersionError: com/intellij/idea/Main 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
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:601)

The Java related packages, installed on my system are:

OpenJDK Java 11 Console
OpenJDK Java 11 Shell
java-enviroment-common 3-3
java-runtime-common 3-3
jre-openjdk 15.0.2.u7-1

I’ve got no clue, which package should I install and what java packages can I remove. I’ll be glad to get assistance.


Which Java version do you have set as default? You’ll need 11. See Java - ArchWiki

1 Like

Thanks Yochanan!
I wasn’t aware of that wiki. I changed the default to 11 and it’s working now.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.