2

当我启动 IntelliJ 时,我有一些警报,例如:

    Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

com.intellij.ide.plugins.StartupAbortedException: UI initialization failed
    at com.intellij.idea.StartupUtil.lambda$start$15(StartupUtil.java:265)
    at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990)
    at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:974)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
    at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:614)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:795)
    at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.util.concurrent.CompletionException: java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x1806bff2) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x1806bff2
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791)
    ... 14 more
Caused by: java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x1806bff2) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x1806bff2
    at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$23(StartupUtil.java:507)
    at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787)
    ... 14 more

-----
Your JRE: 17+35-LTS-2724 amd64 (Oracle Corporation)
C:\Program Files\Java\jdk-17

和:

    Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x1806bff2) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x1806bff2
    at com.intellij.idea.StartupUtil.start(StartupUtil.java:297)
    at com.intellij.idea.Main.bootstrap(Main.java:123)
    at com.intellij.idea.Main.main(Main.java:84)

-----
Your JRE: 17+35-LTS-2724 amd64 (Oracle Corporation)
C:\Program Files\Java\jdk-17

我添加了错误的 JRE 路径,所以我希望有人可以帮助我,我认为它来自我将路径链接到 JDK 17 而不是 JRE 17。但是,现在我无法启动 IntelliJ 来修复。所以我需要你的帮助。谢谢大家。对不起我的英语不好。

4

1 回答 1

2

错误中有一个链接。

内部错误。请参考https://jb.gg/ide/critical-startup-errors

从此

我认为例外是由于某些插件。

请试试这个: -

如果您使用的是 2019.3.x 及以下版本

  • 关闭 IDE 如果打开
  • 转到C:\Users\<Username>\.IntelliJIdea2019.3\config(语法%HOMEPATH%\\.<product><version>\config:-)
  • 删除插件目录
  • 重启IDE

如果您使用的是 2020.1 及以上版本

  • 关闭 IDE 如果打开
  • 转到C:\Users\<Username>\AppData\Roaming\JetBrains\IntelliJIdea2021.2(语法%APPDATA%\JetBrains\<product><version>:-)
  • 删除插件目录
  • 重启IDE
于 2021-10-22T04:15:58.007 回答