I'm using IntelliJ to run a Java program, but I keep on getting this error "java: error: release version 14 not supported"
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: