I am trying to get a project to build in IntelliJ but I keep getting an error. I have tried different JDKs such as the jet brains and OpenJDK but I always get this error
Everything I have seems to be pointing to java 17 so I feel a bit confused
pom.xml
Project Structure
Java compiler settings
Maven Runner Settings
I feel like it could have to do with my project layout?
Your maven.compiler.source
and maven.compiler.target
values are wrong.
Replace 1.17
and set it instead to 17
per JEP 223.
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>