DEV Community

Discussion on: IntelliJ - Error:java: release version 5 not supported

Collapse
 
collinsuz profile image
Collins Uzebu • Edited

There are many great answers here. If you imported your maven project from spring initializr, make sure the project is set to your your java version. In my case Java 16.

Goto File > Project Structure > Modules
Select the project folder, next change the Language level to your Java version, apply and click OK.