Cannot run a HelloWorld on Intellij Idea (java.lang.IllegalAccessError)

Mahdir :

I wanted to just run HelloWorld on Intellij Idea which is failed. Java Version is "9-ea" in my macOS.

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)
    ......

enter image description here

CrazyCoder :

Please make sure to use the release JDK version, not ea and update to the latest IntelliJ IDEA version.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=26981&siteId=1