Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start a new JavaFX project with JDK 9 in IntelliJ

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:

Error:java: invalid flag: -release

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.

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.

enter image description here

like image 218
purring pigeon Avatar asked Sep 12 '16 21:09

purring pigeon


Video Answer


1 Answers

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

enter image description here

Hopefully this will help others who run into this issue.

like image 87
purring pigeon Avatar answered Oct 05 '22 21:10

purring pigeon