IntelliJ Fatal error compiling: error: invalid target release: 14

The complete error log can be consulted here.

Solution 1: Set the correct project jdk version in the IDEA

If the project’s jdk version is defined in the project’s project structure you need to make sure that it is the same as in the pom.xml

Project structure
pom.xml

This page in IntelliJ’s docs will show you how to modify the Project structure settings.

If the project structure jdk version is not set you need to change the boot Java runtime of the IDE and make sure that it is the same as in the pom.xml

This page in IntelliJ’s docs will show you how to modify the boot jdk runtime of the IDE.

Solution 2: Set the correct project jdk version in the pom.xml

For example, if your pom.xml has jdk 14, but you have jdl 11, change the jdk version to 11:

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

␡Docker — How to Delete Everything

Are we teaching our kids computer science to get a job at SpaceX?

Power BI Calculated Column vs Measure. Which one is more important?

[TIL] Xcode : Select a development team in the Signing & Capabilities editor errorg

Technical debt, what to do?

Week 4: Before & After I shall Hide 🤨

An introduction to Penetration Testing using Kali Linux

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alvaro Andres Pinzon Cortes

Alvaro Andres Pinzon Cortes

More from Medium

Test case failed only when maven build

JDK, JRE, and JVM

Collection Framework in Java

A Deep-dive on logging frameworks