javaintellij-ideasdkjava-14

Java error: release version 14 not supported in IntelliJ IDEA


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


Solution

  • 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