[英]Unable to compile in Intellij - Error:java: exporting a package from system module jdk.compiler is not allowed with --release
I am working on one project in IntelliJ IDEA.我正在 IntelliJ IDEA 中开展一个项目。 I loaded it from a github repository (Check out from version control on the splash screen-> git -> paste the url).
我从 github 存储库加载它(从初始屏幕上的版本控制中查看 -> git -> 粘贴 url)。 I have no errors in my code, but when I try to compile I get the following message:
我的代码中没有错误,但是当我尝试编译时,我收到以下消息:
Error:java: exporting a package from system module jdk.compiler is not allowed with --release错误:java:不允许使用 --release 从系统模块 jdk.compiler 导出包
I'm a beginner in working with Intellij, and I have no idea what this message means.我是 Intellij 的初学者,我不知道这条消息是什么意思。 Any help?
有什么帮助吗? I am using JDK 11
我正在使用 JDK 11
在 Intellij IDEA 中,转到 File >> Settings >> Build,Execution,Deployment >> Compiler >> Java compiler 并取消选中“Use 'release' option for cross-compilation...”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.