EAP Plugin doesn't start

Answered
I get the error below when running a little IntelliJ plugin I wrote for fun (https://github.com/jonathanlocke/intellij-macros).  Any ideas? Thanks!  -- Jon
 
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home/bin/java -Xmx512m -Xms256m -ea -Didea.config.path=/Users/jonathan/Library/Caches/JetBrains/IdeaIC2021.3/plugins-sandbox/config -Didea.system.path=/Users/jonathan/Library/Caches/JetBrains/IdeaIC2021.3/plugins-sandbox/system -Didea.plugins.path=/Users/jonathan/Library/Caches/JetBrains/IdeaIC2021.3/plugins-sandbox/plugins -Didea.classpath.index.enabled=false -Didea.required.plugins.id=main.java.macros -Dapple.laf.useScreenMenuBar=true -Dapple.awt.fileDialogForDirectories=true -Didea.platform.prefix=Idea "-javaagent:/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/lib/idea_rt.jar=63361:/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath "/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/lib/openapi.jar:/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/lib/util.jar:/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/lib/bootstrap.jar:/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/lib/idea_rt.jar:/Users/jonathan/Library/Application Support/JetBrains/Toolbox/apps/IDEA-C/ch-1/213.5449.25/IntelliJ IDEA 2021.3 CE EAP.app/Contents/lib/idea.jar" com.intellij.idea.Main
2021-10-29 16:32:27,695 [    254]  ERROR -        #com.intellij.idea.Main - UI initialization failed 
com.intellij.ide.plugins.StartupAbortedException: UI initialization failed
at com.intellij.idea.StartupUtil.lambda$start$15(StartupUtil.java:268)
at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
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.IllegalAccessException: symbolic reference class is not accessible: class com.apple.laf.AquaLookAndFeel, from class com.intellij.ide.ui.laf.darcula.DarculaLaf (unnamed module @7c21eced)
at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$22(StartupUtil.java:463)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
... 14 more
Caused by: java.lang.IllegalAccessException: symbolic reference class is not accessible: class com.apple.laf.AquaLookAndFeel, from class com.intellij.ide.ui.laf.darcula.DarculaLaf (unnamed module @7c21eced)
at java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:957)
at java.base/java.lang.invoke.MethodHandles$Lookup.checkSymbolicClass(MethodHandles.java:3675)
at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3647)
at java.base/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2757)
at com.intellij.ide.ui.laf.darcula.DarculaLaf.createBaseLaF(DarculaLaf.java:345)
at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$22(StartupUtil.java:457)
... 15 more
2021-10-29 16:32:27,702 [    261]  ERROR -        #com.intellij.idea.Main - IntelliJ IDEA 2021.3 EAP  Build #IC-213.5449.25 
2021-10-29 16:32:27,702 [    261]  ERROR -        #com.intellij.idea.Main - JDK: 16.0.1; VM: Java HotSpot(TM) 64-Bit Server VM; Vendor: Oracle Corporation 
2021-10-29 16:32:27,702 [    261]  ERROR -        #com.intellij.idea.Main - OS: Mac OS X 
 
Start Failed
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:268)
at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:610)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:791)
at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:478)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
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.IllegalAccessException: symbolic reference class is not accessible: class com.apple.laf.AquaLookAndFeel, from class com.intellij.ide.ui.laf.darcula.DarculaLaf (unnamed module @7c21eced)
at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$22(StartupUtil.java:463)
at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:783)
... 14 more
Caused by: java.lang.IllegalAccessException: symbolic reference class is not accessible: class com.apple.laf.AquaLookAndFeel, from class com.intellij.ide.ui.laf.darcula.DarculaLaf (unnamed module @7c21eced)
at java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:957)
at java.base/java.lang.invoke.MethodHandles$Lookup.checkSymbolicClass(MethodHandles.java:3675)
at java.base/java.lang.invoke.MethodHandles$Lookup.resolveOrFail(MethodHandles.java:3647)
at java.base/java.lang.invoke.MethodHandles$Lookup.findConstructor(MethodHandles.java:2757)
at com.intellij.ide.ui.laf.darcula.DarculaLaf.createBaseLaF(DarculaLaf.java:345)
at com.intellij.idea.StartupUtil.lambda$scheduleInitUi$22(StartupUtil.java:457)
... 15 more
 
-----
Your JRE: 16.0.1+9-24 x86_64 (Oracle Corporation)
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
 
!bootstrap.error.title.start.failed!
!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 @0x7c21eced) cannot access class sun.awt.AWTAutoShutdown (in module java.desktop) because module java.desktop does not export sun.awt to unnamed module @0x7c21eced
at com.intellij.idea.StartupUtil.start(StartupUtil.java:300)
at com.intellij.idea.Main.bootstrap(Main.java:130)
at com.intellij.idea.Main.main(Main.java:81)
 
-----
!bootstrap.error.message.jre.details!16.0.1+9-24 x86_64 (Oracle Corporation)
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home!
Warning: the fonts "Times" and "Times" are not available for the Java logical font "Serif", which may have unexpected appearance or behavior. Re-enable the "Times" font to remove this warning.
 
Process finished with exit code 3

 

1 comment
Comment actions Permalink

What JDK is used to start the IDE? Is it JDK 16? 
If so, add these VM options: 

https://youtrack.jetbrains.com/issue/JBR-745#focus=Comments-27-5099321.0-0

0

Please sign in to leave a comment.