Home > Mobile >  How to set JRE or JDK to Java 11 for IntelliJ when I get error "compiled by a more recent versi
How to set JRE or JDK to Java 11 for IntelliJ when I get error "compiled by a more recent versi

Time:11-29

I try to compile enter image description here

3. In the Java Compiler

enter image description here

4. In the JRE Setting

enter image description here

Where do I miss setting my Java Run Time?

CodePudding user response:

1 - Is for your OS and terminal, nothing common with the project

2 - Is the JDK for running Gradle. For Gradle daemon itself, not for the project

3 - Is the project's bytecode version which could be overwritten in module.

4 - Is the Runtime environment for the IDE itself.

So, you need to edit Project Structure > Project setting > Project > Language level See https://www.jetbrains.com/help/idea/sdk.html#set-up-jdk

  • Related