How to fix this java error?

Asked

Viewed 53 times

-1

I am trying to create an Api with Spring Boot.

However, even if I implement all the dependencies in the pom.xml file, the error persists.

The error message is:

Failed to execute Goal org.apache.Maven.plugins:Maven-Compiler-plugin:3.8.1:Compile (default-Compile) on project demo: Fatal error compiling: invalid target release: 11 -> [Help 1]

  • What is the version of your JVM 1.7 or 1.8? I suspect you are using 1.7, install 1.8 and point JAVA_HOME to this new installation.

1 answer

0

Force Maven to download this dependency. Go to the project, right click and then Maven - >update. Then use Maven clean and Maven install

Browser other questions tagged

You are not signed in. Login or sign up in order to post.