从 Linux 中的命令行打开 IntelliJ 时出现错误消息
Error message when opening IntelliJ, from command line in Linux
我更改了我的 IntelliJs 基础 JDK,试图修复一个错误,现在它甚至不让我打开 Intellij。我尝试重新安装,但没有用。
IntelliJ 版本 - 2020.3.3
我的 Linux VM 的 JDK - openjdk 11.0.14 2022-01-18
JDK 我也更改了我的 IntelliJ - 17.0.2
!bootstrap.error.message.internal.error.please.refer.to.0!https://jb.gg/ide/critical-startup-errors!
java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x7c89fbb9) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x7c89fbb9
at com.intellij.idea.StartupUtil.start(StartupUtil.java:301)
at com.intellij.idea.Main.bootstrap(Main.java:134)
at com.intellij.idea.Main.main(Main.java:82)
来自docs
Boot JDK path is stored in the .jdk file located in the
config folder. It can be modified either via the Change IDE boot JDK
action or by manually editing .jdk file (if you can't start the IDE to
change it via an action).
所以您需要手动编辑.jdk
文件。 (至于那个编辑是什么样的,我不确定。文档中没有提到)
对于 Linux 和 Mac,JetBrains 推荐他们自己的 JRE,该文档中引用了它。
Intellij IDEA 2020.3 does not support the use of JDK 17。这是有道理的,因为它于 2020 年 11 月发布,JDK 17 在大约 10 个月后,即 2021 年 9 月 14 日发布。
您可以与 Intellij IDEA 2020.3 一起使用的最新 JDK 是 JDK 15.
因此,要么将 Intellij IDEA 2020.3 使用的 JDK 降级为 JDK 15,要么 upgrade to a version of Intellij IDEA >= 2021.2,允许您使用 JDK 17。
我更改了我的 IntelliJs 基础 JDK,试图修复一个错误,现在它甚至不让我打开 Intellij。我尝试重新安装,但没有用。 IntelliJ 版本 - 2020.3.3 我的 Linux VM 的 JDK - openjdk 11.0.14 2022-01-18 JDK 我也更改了我的 IntelliJ - 17.0.2
!bootstrap.error.message.internal.error.please.refer.to.0!https://jb.gg/ide/critical-startup-errors!
java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x7c89fbb9) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x7c89fbb9
at com.intellij.idea.StartupUtil.start(StartupUtil.java:301)
at com.intellij.idea.Main.bootstrap(Main.java:134)
at com.intellij.idea.Main.main(Main.java:82)
来自docs
Boot JDK path is stored in the .jdk file located in the config folder. It can be modified either via the Change IDE boot JDK action or by manually editing .jdk file (if you can't start the IDE to change it via an action).
所以您需要手动编辑.jdk
文件。 (至于那个编辑是什么样的,我不确定。文档中没有提到)
对于 Linux 和 Mac,JetBrains 推荐他们自己的 JRE,该文档中引用了它。
Intellij IDEA 2020.3 does not support the use of JDK 17。这是有道理的,因为它于 2020 年 11 月发布,JDK 17 在大约 10 个月后,即 2021 年 9 月 14 日发布。
您可以与 Intellij IDEA 2020.3 一起使用的最新 JDK 是 JDK 15.
因此,要么将 Intellij IDEA 2020.3 使用的 JDK 降级为 JDK 15,要么 upgrade to a version of Intellij IDEA >= 2021.2,允许您使用 JDK 17。