How to use Java JDK 21 with IntelliJ


The Java JDK 21 is the latest LTS version of Java which is now available with IDEA IntelliJ IDE - the most popular IDE for Java and Kotlin app development.

To work with Java OpenJDK 21, you can download the latest version of IntelliJ Community or Ultimate version from JetBrains download page - https://www.jetbrains.com/idea/download

When you create a new project, you will see JDK - 21 Oracle OpenJDK version 21 being selected.

If you are using an older version of IntelliJ, you can select from the dropdown - "Add SDK -> Java JDK" and choose Java 21, or choose JDK that you have downloaded on your device.

Java Oracle Open JDK 21 version with IntelliJ

This is not an AI-generated article but is demonstrated by a human on IntelliJ IDEA 2023.2.2 (Ultimate Edition) on a M1 Mac running macOS Sonoma 14.0.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap