Such problems are not the first time, I don’t remember how I managed to solve it, it seems that I created a new project. Krc is a class, there is a method main() and there is System.out.println("Hello"); When calling Maine, he throws out a compilation error and Error:java: error: release version 5 not supported What could be the problem and how to solve it?

Problem method:

 public static void main(String[] args) { System.out.println("Hello"); } 

Screen of project settings: project settings

  • As far as I know, in Java there is no method like sout. Typically, in some environments, this abbreviation is used to ensure that the editor itself substituted System.out.println - Vlad from Moscow
  • Sorry, I just cut it. In Inteliij Idea, when typing a sout combination, System.out.println () is written. - ImmRaytal 1:31 pm
  • In this case, demonstrate the minimal ready-made example that generates a similar error. - Vlad from Moscow
  • @ImmRaytal, show that you have in the project settings in the IDE - maybe there is, in fact, the 5th version of Java, and therefore it does not plow. If so, then there you can change it for 8+ and everything should work. - Yuriy SPb 1:34 pm
  • @ YuriySPb, updated the cap - ImmRaytal pm

1 answer 1

file-> settings-> search: Java Compiler -> Target bytecode version: 11

  • five
    Please write more detailed answers. - AK