Search code examples
javamavenintellij-idea

Intellij shows Project Language Level as 12 maximum despite having java version 17 SDK


language level shows 12 max, nothing beyond that

As you can see in the image above, the SDK is set to 17 and yet i am not seeing language level up to 17 or higher. What am i missing?

Even Java compiler shows up to 12 bytecode version.

java compiler also showing only up to 12


Solution

  • I'm going to add an answer so this can hopefully be helpful to others.

    The language level version available is dependent on the version of Jetbrains IDEA itself. As @Slaw pointed out, there is a table provided by Jetbrains

    https://www.jetbrains.com/help/idea/supported-java-versions.html

    By that table, 2019.1 will support up to language level 13. At least 2021.2 is required for language level 17.