【发布时间】:2020-06-18 14:48:51
【问题描述】:
我只想在失败的 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)
......
【问题讨论】:
-
请确保使用release JDK版本,而不是ea并更新到最新的IntelliJ IDEA版本:jetbrains.com/idea/download/index.html。
-
@CrazyCoder 谢谢哥们,如果你把它作为答案而不是评论,我会感激地把它标记为答案。
标签: java intellij-idea