java: error: Release version 15 not supported but languageLevel is set to "JDK_14"

Answered

Hello,

So I read in this post that I must set the language level to 14 to fix the "release version 15 not supported" error. I already did that, but the error remains. 

What do I have to do?

5 comments
Comment actions Permalink

Tr setting maven target version to 14 also:

<properties>
  <maven.compiler.source>14</maven.compiler.source>
  <maven.compiler.target>14</maven.compiler.target>
</properties>

What the version of IntelliJ IDEA? The error in the post you are referring to should have been fixed in 2020.2.3

0
Comment actions Permalink

Hello,

Thank you for answering. I am currently using the 2020.2.3.

After setting the target version to 14, I now get "pacage javafx.fxml does not exist". Which is weird, because I do not get an error when I try to import "javafx.fxml.FXMLLoader"


These are the maven errors I get:

Also I am quite new at javafx. So I do not know if I even built the project correctly from the beginning, even though I did follow a youtube tutorial for it.

0
Comment actions Permalink

It is hardly related to IDE, but to the project itself. So, it is needed to share a sample project where this could be reproduced.

0
Comment actions Permalink

A zip of the project can be found here. It is just a basic project. 

0
Comment actions Permalink

The compilation is working fine for me. 

Try removing .idea folder in project's root and re-import it by selecting pom.xml file. 

 

0

Please sign in to leave a comment.