Nome Cognome
Nome Cognome

Reputation: 27

Fatal error compiling: invalid target release: 12 -> [Help 1]

enter image description here

I am using Codeanywhere and I need to run a web server with maven. But it gives me this error: Fatal error compiling: invalid target release: 12 -> [Help 1], as also seen in the image but I don't understand how to fix it.

Upvotes: 1

Views: 496

Answers (1)

pxcv7r
pxcv7r

Reputation: 466

Maven is trying to compile using Java 12, but it cannot be found. Either set the path correctly to your JDK 12 or set the target JDK in pom.xml to something else (the easiest way is to set the maven.compiler.target property). See similar answers

Upvotes: 1

Related Questions