Using Java JDK 22 with IntelliJ IDE

Java JDK 22 is the latest version of Java that was just released on 19th March 2024.

If you make use of IntelliJ IDEA IDE, you can make use of the JDK 22 by following the below steps.

Download JDK Option IntelliJ

As you now, below are the Open JDK options we can choose from .

  1. Azul Zulu Community™ 22 - ZuluArcher 22
  2. BellSoft Liberica JDK 22 - BellArcher 22
  3. Eclipse Temurin (AdoptOpenJDK HotSpot) 22 - TemurinSpot 22
  4. GraalVM Community Edition 22.0.0 - GraalBolt 22.0.0
  5. Oracle GraalVM 22 - OracleGraal 22
  6. Oracle OpenJDK 22 - OracleJDK 22
  7. SAP SapMachine 22 - SAPArrow 22

I have selected "Oracle OpenJDK 22 (aarch64)" as you see below.

Installing Oracle OpenJDK 22 aarch64
Example:
public class Example {

    public static void main(String[] args) {
        System.out.println("JDK Version: " + System.getProperty("java.version"));
    }
}

Output: JDK Version: 22

Note: The preview features are turned off by default.

Comments & Discussion

Facing issues? Have questions? Post them here! We're happy to help!