如何在IntelliJ中使用JDK 9启动新的JavaFX项目 [英] How to start a new JavaFX project with JDK 9 in IntelliJ

查看:187
本文介绍了如何在IntelliJ中使用JDK 9启动新的JavaFX项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在IntelliJ中启动一个新的JDK 9项目,但是当我尝试运行它时,我在make过程中遇到以下错误:

I am trying to start a new JDK 9 project in IntelliJ, but when I attempt to run it I get the following error during the make process:


错误:java:无效标志:-release

Error:java: invalid flag: -release

我知道我没有正确设置但是可以'似乎找不到任何与在IntelliJ中使用Jigsaw建立项目相关的内容。

I know I haven't set it up correctly but can't seem to find anything relating to setting up a project with Jigsaw in IntelliJ.

编辑
这是一个屏幕截图问题。无法在任何地方找到与此相关的任何内容。

Edit Here is a screen shot of the issue. Haven't been able to find anything related to this anywhere.

我在IDE中没有编译器错误。它只是在build / run命令上失败了。这是一个干净的IntelliJ安装,从JDK 9开始的新项目。

I have no compiler errors in the IDE. It just fails on the build/run command. This is a clean install of IntelliJ, new project started with the JDK 9.

推荐答案

我能够将JDK级别设置为实验级别并且有效。

I was able to set the JDK level to experimental and it worked.

希望这会帮助遇到此问题的其他人。

Hopefully this will help others who run into this issue.

这篇关于如何在IntelliJ中使用JDK 9启动新的JavaFX项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆