Unable to open idea after 2021.2 update

Answered

Hello, I can't open intellij app after 2021.2 update on macOS 11.4:

2
9 comments

I am using Linux Mint and have the same issue after upgrading to 2021.2

 

➜  bin ./idea.sh      
Error occurred during initialization of VM
java.lang.NoSuchMethodError: 'void com.intellij.util.lang.UrlClassLoader.<init>(com.intellij.util.lang.UrlClassLoader$Builder, java.util.function.Function, boolean)'
at com.intellij.util.lang.PathClassLoader.<init>(PathClassLoader.java:50)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@11.0.11/Native Method)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@11.0.11/NativeConstructorAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@11.0.11/DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(java.base@11.0.11/Constructor.java:490)
at java.lang.ClassLoader.initSystemClassLoader(java.base@11.0.11/ClassLoader.java:1978)
at java.lang.System.initPhase3(java.base@11.0.11/System.java:2074)
0

It seems that we have to do a fresh install of the version.
https://youtrack.jetbrains.com/issue/IDEA-274523

2

I'm on windows 10 (build 19042.1052) and I have the same error as Vahid Rafiei. When I try to open via .exe, nothing happens. If I run via command line, I get the same `NoSuchMethodError`

C:\Program Files\JetBrains\IntelliJ IDEA 2019.1\bin>idea.bat
Error occurred during initialization of VM
java.lang.NoSuchMethodError: 'void com.intellij.util.lang.UrlClassLoader.<init>(com.intellij.util.lang.UrlClassLoader$Builder, java.util.function.Function, boolean)'
at com.intellij.util.lang.PathClassLoader.<init>(PathClassLoader.java:50)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@11.0.11/Native Method)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@11.0.11/NativeConstructorAccessorImpl.java:62)
at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@11.0.11/DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(java.base@11.0.11/Constructor.java:490)
at java.lang.ClassLoader.initSystemClassLoader(java.base@11.0.11/ClassLoader.java:1978)
at java.lang.System.initPhase3(java.base@11.0.11/System.java:2074)
0

This free tool by JetBrains fixes everything for every OS. I used it for Linux, which is less straightforward, and it's very handy: 
https://www.jetbrains.com/toolbox-app/

0

Teun Van Der Wijst Vahid Rafiei Paulbogdan97

This is a known issue: https://youtrack.jetbrains.com/issue/IDEA-274515.

Sorry that you guys have bumped into it.

Clean install from https://www.jetbrains.com/idea/download/index.html should fix the problem.

1

On Win10 Professional x64 I had solved the problem by deleting idea64.exe.vmoptions file:
%USERPROFILE%\AppData\Roaming\JetBrains\IntelliJIdea2021.2\idea64.exe.vmoptions

2

Deleting idea64.vmoptions worked like a charm for me too! (Linux 64bit)

0

I'vre tried a fresh install twice, from website download and using the Toolbox app. I've tried removing the *.vmoptions file. Nothing has work yet and I'm unable to initiate at all IntelliJ.
These are the logs when executing idea.bat


PS C:\Users\--------\AppData\Local\JetBrains\Toolbox\apps\IDEA-C\ch-0\212.5080.55\bin> .\idea.bat
Error occurred during initialization of VM
java.lang.UnsupportedClassVersionError: com/intellij/util/lang/PathClassLoader 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 java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2202)
at java.lang.SystemClassLoaderAction.run(ClassLoader.java:2188)
at java.security.AccessController.doPrivileged(Native Method)
at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1449)
at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1429)
0

You are trying to run IDE with 1.8 JDK which is not supported by latest IDE versions. You need to check if the default (bundled) 11 JDK has been changed to 1.8 JDK in your configuration. For example it can be overridden in idea.exe.jdk file in IDE config directory. Also, the IDEA_JDK_64 environment variable will override the value used by default (see the document by the given link about sequence IDE uses to find the JDK to run).

0

Please sign in to leave a comment.