Java error: release version 14 not supported in IntelliJ IDEA

Viewed 5934

I'm using IntelliJ to run a Java program, but I keep on getting this error "java: error: release version 14 not supported"

enter image description here

2 Answers

The screenshot shows you are using JDK 11 as the project JDK and trying to target JDK 14 language level via the Maven configuration (I'd specify it as 14 instead of 1.14).

To fix the problem change the project JDK to version 14.

Project Structure | Project SDK:

JDK

I See from the external libraries that the project is set to run with java 11 JDK.

Update your project Settings to use java 14 and it should work

Related