I’m having difficulty running a simple Java Maven project in IntelliJ IDEA Ultimate 2019.3.1. When I try, I get the error
Error:java: error: release version 5 not supported.
Terminal output for
java --version is:
openjdk 11.0.5 2019-10-15 OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.1) OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.1, mixed mode, sharing)
javac --version is:
In the IntelliJ settings for the Java Compiler, the “Target bytecode version” is set to 1.8, but this results in a series of errors when trying to run the project. Changing the version to 1.11 results in the error
Error:java: Source option 5 is no longer supported. Use 6 or later.. What could be the issue and how can I solve it?