Just updated Clion and getting java.lang.UnsupportedClassVersionError
Hi,
How do I fix the error I'm getting when starting clion after latest update? Do I need to update Java? Is there any other solution? Thank you.
Victor.
Error:
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/idea/Main : 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)
Java version:
java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Please sign in to leave a comment.
The user also contacted us via support request page. Using CLion 2019.2 for Linux with bundled JBR8 (https://www.jetbrains.com/clion/download/other.html) helped.
Sorry, Anna, downloading and installing the latest version using the link https://www.jetbrains.com/clion/download/other.html did not help. I had to to reinstall the package I downloaded originally before CLion update. That package worked, but I cannot update to the latest. Basically, the latest version of CLion requires updating Java to version higher than my server farm is running.
Anyway, we can close the request. Thank you.
@Belyakov, in the email correspondence my colleague asked you to install CLion 2019.2 with bundled JBR8 (which can be downloaded here - https://www.jetbrains.com/clion/download/other.html) and you replied that bundled JBR version worked fine. That's why I posted my previous comment. Did we misunderstand you?