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.
I was able to set the JDK level to experimental and it worked.
Hopefully this will help others who run into this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With