I updated java from java 16 to java 17 and now my editor won't work. I use intellij and here is the error message
Internal error. Please refer to https://jb.gg/ide/critical-startup-errors
java.lang.IllegalAccessError: class com.intellij.idea.StartupUtil (in unnamed module @0x4bbd0bd0) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x4bbd0bd0
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
CodePudding user response:
Current IntelliJ IDEA version requires Java 11 to run. Remove the overrides (idea.jdk
file/environment variables) to use the default bundled JetBrains Runtime.