Uploaded update for Intellij Idea. Now when the program starts, it gives an error: Error: java: invalid source release: 1.9. What could it be?

  • one
    File -> Project Structure -> Modules -> Project -> Project SDK and Project language level you set right (not 1.9) - Andrew Bystrov
  • @AndrewBystrov. Thank you for your feedback. But there in the "Project SDK" window, there is <1.8 (java version "1.8.0_65")> and there is no SDK. Instead, it says in red: "No sdk". - Shaukat

1 answer 1

File -> Project Structure -> Project.

In the Project SDK combobox Project SDK select the desired SDK (if it is not there, poke new and choose the path to sdk’s).

In the Project language level set 8 (well, or what kind of java requires sdk)