无法在Intellij Idea(java.lang.IllegalAccessError)上运行HelloWorld

无法在Intellij Idea(java.lang.IllegalAccessError)上运行HelloWorld,java,intellij-idea,Java,Intellij Idea,我想在Intellij Idea上运行HelloWorld,但失败了。 Java版本在我的macOS中是“9-ea” Error:Internal error: (java.lang.IllegalAccessError) class com.intellij.util.io.FileChannelUtil (in unnamed module @0x6ecc4cd7) cannot access class sun.nio.ch.FileChannelImpl (in module java.

我想在Intellij Idea上运行HelloWorld,但失败了。 Java版本在我的macOS中是“9-ea”

Error:Internal error: (java.lang.IllegalAccessError) class com.intellij.util.io.FileChannelUtil (in unnamed module @0x6ecc4cd7) cannot access class sun.nio.ch.FileChannelImpl (in module java.base) because module java.base does not export sun.nio.ch to unnamed module @0x6ecc4cd7
java.lang.IllegalAccessError: class com.intellij.util.io.FileChannelUtil (in unnamed module @0x6ecc4cd7) cannot access class sun.nio.ch.FileChannelImpl (in module java.base) because module java.base does not export sun.nio.ch to unnamed module @0x6ecc4cd7
    at com.intellij.util.io.FileChannelUtil.setupUnInterruptibleHandle(FileChannelUtil.java:26)
    ......

请确保使用JDK发布版本,而不是ea并更新到。

请确保使用JDK发布版本,而不是ea并更新到IntelliJ IDEA的最新版本:。@CrazyCoder感谢好友,如果您将其作为答案而不是评论回答,我将感激地将其标记为答案。