Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: error: release version 13 not supported

Tags:

java

My application is as simple as it can get:

System.out.println("Hello World!")

Results in:

Error: java: error: release versoin 13 not supported

like image 542
mmassyn Avatar asked Jun 02 '19 14:06

mmassyn


2 Answers

There's a  lot of places you must check:

  • File -> Project Structure

  • Edit Configurations (in drop down near RUN button)

  • File -> Settings -> search for SDK

But what really worked for me after set everything above to my correctly Java 11 version was change this setting:

  • File -> Settings -> Build, Execution, Deployment -> Compiler -> Java Copiler -> Project Bytecode Version

This setting was pointing to Java 13, so I changed to Java 11 and everything started to work as expected

Good luck

like image 193
Garry Dias Avatar answered Sep 22 '22 01:09

Garry Dias


What worked for me was setting the language level to 13.

Go to File --> Project Structure --> Modules

like image 23
KNayak430 Avatar answered Sep 26 '22 01:09

KNayak430