Languages

IntelliJ IDEA - java: invalid target release: 11

7 points
Asked by:
Vadim-Kotiv
414

Do you know what is the reason, why my Java application returns during compilation the following error:

java: invalid target release: 11

It appeard after migration from Java 11 to Java 9.

I have changed Language level to 8 in File -> Project Structure -> Modules.

1 answer
6 points
Answered by:
Vadim-Kotiv
414

You should change your configuration to Java 8 (JDK 1.8 + Language level 8) in:

  1. File -> Project Structure -> Project,
  2. File -> Project Structure -> Modules,
    • Sources tab
    • Dependences tab
  3. File -> Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler

 

0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join