简体   繁体   English

有人能告诉我我对 IntelliJ 做错了什么吗

[英]Can somebody tell me what I have done wrong to IntelliJ

When I start IntelliJ I have some alert like:当我启动 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

And:和:

    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

I've added wrong path to JRE so I hope somebody can help me I think it come from I linked the path to JDK 17 instead of JRE 17. But, now I can't start IntelliJ to fix.我添加了错误的 JRE 路径,所以我希望有人可以帮助我我认为它来自我将路径链接到 JDK 17 而不是 JRE 17。但是,现在我无法启动 IntelliJ 进行修复。 So I nedd your help.所以我需要你的帮助。 Thank for all.谢谢大家。 Sorry about my bad English.抱歉我的英语不好。

There is a link in the error.错误中有一个链接。

Internal error.内部错误。 Please refer to https://jb.gg/ide/critical-startup-errors请参考https://jb.gg/ide/critical-startup-errors

From that从那

I think the exception is due to some plugins.我认为例外是由于一些插件。

Please try this:-请试试这个:-

If you are using 2019.3.x and below versions如果您使用的是 2019.3.x 及以下版本

  • Close IDE If open关闭 IDE 如果打开
  • Go to C:\\Users\\<Username>\\.IntelliJIdea2019.3\\config (Syntax:- %HOMEPATH%\\\\.<product><version>\\config )转到C:\\Users\\<Username>\\.IntelliJIdea2019.3\\config (语法:- %HOMEPATH%\\\\.<product><version>\\config
  • Delete the plugins Directory删除插件目录
  • Restart IDE重启IDE

If you are using 2020.1 and above versions如果您使用的是2020.1及以上版本

  • Close IDE If open关闭 IDE 如果打开
  • Go to C:\\Users\\<Username>\\AppData\\Roaming\\JetBrains\\IntelliJIdea2021.2 (Syntax:- %APPDATA%\\JetBrains\\<product><version> )转到C:\\Users\\<Username>\\AppData\\Roaming\\JetBrains\\IntelliJIdea2021.2 (语法:- %APPDATA%\\JetBrains\\<product><version>
  • Delete plugins Directory删除插件目录
  • Restart IDE重启IDE

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 有人能告诉我我做错了什么吗 - Can some one tell me what i have done wrong 谁能告诉我我在做什么错? -堆栈 - Can anyone tell me what I'm doing wrong? - Stacks 我已经允许 @CrossOrigin(origins=“*”) 注释,但它仍然不起作用。 谁能告诉我这里有什么问题? - I have allowed @CrossOrigin(origins=“*”) annotation but it still doesnot work. Can anybody tell me what is wrong here? 我在 Android 代码中做错了什么? - What have I done wrong in the Android code? 有一种有效的“合并排序”功能,但不是完全可以,有人可以告诉我我做错了什么吗? - Have a sort of working Merge Sort, but not quite, could someone tell me what I am doing wrong? 我正在尝试下载android studio,但它一直告诉我要安装Java。 请告诉我该怎么办? - I am trying to download android studio but it keeps telling me to install Java which i have done so. Please tell me what i should do? 我在使用Java使用输入和输出重定向时遇到麻烦。 有人可以告诉我哪里出了问题吗? - I'm having trouble using input and output redirection using Java. Could somebody tell me where in going wrong with it? 有人可以告诉我在Java中设置此Robot类时我做错了什么吗? - Can someone tell me what I'm doing wrong to setup this Robot class in Java? 有人能告诉我我做错了什么吗? 通过LinkedList计数和循环 - Can someone tell me what i'm doing wrong? Counting and looping through LinkedList 有人可以告诉我在Java中实际使用IdentityHashMap吗? - Can somebody tell me the practical use of IdentityHashMap in java?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM