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?

0
5 comments

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

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

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

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

0

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.