Most of the time you will not downgrade the version of the JDK to 1.4! (the jdk of Intellij is 1.8) and the language level of the project was changed accordingly to 1.4: In the code below, 1.4 was configured in the pom using maven-compiler-plugin
Cannot start under Java -release-b1491: Java 11 or later is required. IntelliJ IDEA 12 embraces the cutting edge version of the language and provides code assistance for the new syntax, such as lambda expressions, method references and default methods. If problem persists, continue on to number 2 below. Another important feature is support for Java 8, the next generation of the Java platform, announced by Oracle this year. Delete value under Target bytecode version, then click OK.
Intellij java version update#
The properties do not always change the language level of Intellij! Just downloaded an update with new version, and now I am unable to open IJ, seeing this message in a popup window. Go to IntelliJ IDE menu item (or File on Windows) -> Preferences -> Build, Execution, Deployment -> Java Compiler.
Intellij java version how to#
That’s all about how to change java version in intellij. It won’t also change JVM used by build tools such as maven or gradle. How can a real developer keep up with this The good news is that your IDE can help. If you run the java program via command line, then it will use JAVAHOME java version. The releases might even contain preview features which are 'complete' but may change with every new release until they finally stabilize. I am used to IntelliJ IDEA Community Edition (free and open-source version) and found it great (and faster) for Java and Scala development. To change the language level, make usage of The current release cadence of a new version of Java every 6 months can be overwhelming.