[Bug] IntelliJ fails to run

已回答

I was having some issues with a specific class file not running on an incompatible java version and changed the default java boot runtime, despite warnings not to do so. Mistakes were made. Now, IntelliJ fails to run.


I've to uninstalled and reinstalled IntelliJ, but I keep getting the error provided below. 
Any help would be greatly appreciated!

 

MBP:~ sd$ /Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea ; exit;

2022-07-06 12:22:01.217 idea[881:10578] Current Directory: /Users/sd

2022-07-06 12:22:01.218 idea[881:10578] parseVMOptions: IDEA_VM_OPTIONS = (null)

2022-07-06 12:22:01.218 idea[881:10578] fullFileName is: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

2022-07-06 12:22:01.218 idea[881:10578] fullFileName exists: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

2022-07-06 12:22:01.218 idea[881:10578] parseVMOptions: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions

2022-07-06 12:22:01.218 idea[881:10578] parseVMOptions: /Applications/IntelliJ IDEA.app.vmoptions

2022-07-06 12:22:01.220 idea[881:10578] parseVMOptions: /Users/sd/Library/Application Support/JetBrains/IntelliJIdea2022.1/idea.vmoptions

2022-07-06 12:22:01.220 idea[881:10578] parseVMOptions: platform=17 user=1 file=/Users/sd/Library/Application Support/JetBrains/IntelliJIdea2022.1/idea.vmoptions

OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set

2022-07-06 12:22:01.314 idea[881:10578] Main class com/intellij/idea/Main not found

Exception in thread "main" java.lang.ExceptionInInitializerError

at org.jetbrains.xxh3.Xxh3.hash(Xxh3.java:54)

at com.intellij.util.lang.ImmutableZipFile.getIndex(ImmutableZipFile.java:89)

at com.intellij.util.lang.ImmutableZipFile.getByteBuffer(ImmutableZipFile.java:165)

at com.intellij.util.lang.ZipResourceFile.findClass(ZipResourceFile.java:105)

at com.intellij.util.lang.JarLoader.findClass(JarLoader.java:63)

at com.intellij.util.lang.ClassPath.findClassInLoader(ClassPath.java:246)

at com.intellij.util.lang.ClassPath.findClassWithoutCache(ClassPath.java:235)

at com.intellij.util.lang.ClassPath.findClass(ClassPath.java:202)

at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:209)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)

at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)

Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: module java.base does not open java.lang to unnamed module @7e6cbb7a

at org.jetbrains.xxh3.StringHash.<clinit>(StringHash.java:23)

... 11 more

Caused by: java.lang.IllegalAccessException: module java.base does not open java.lang to unnamed module @7e6cbb7a

at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:263)

at org.jetbrains.xxh3.StringHash.<clinit>(StringHash.java:14)

... 11 more

logout

 

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.

 

[Process completed]

 

 

 

0

Please see https://intellij-support.jetbrains.com/hc/en-us/articles/206544879.

You need to remove idea.jdk file from the Configuration directory: https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#config-directory.

For IntelliJ IDEA Ultimate:

rm -rf ~/Library/Application\ Support/JetBrains/IntelliJIdea2022.1/idea.jdk
0

请先登录再写评论。