Below are the steps to install Java 21 JDK on Windows 11 PC.
- Go to the official Oracle OpenJDK Download page for Java 21 - https://jdk.java.net/java-se-ri/21
- Download the setup: Windows 11 x64 Java Development Kit. This will download a zip file - openjdk-21_windows-x64_bin.zip
- Now create a Java-21 folder under C:\Program Files and extract the jdk-21 zip file in it.
- Now we add the path of the Java 21 bin folder - "C:\Program Files\Java-21\jdk-21\bin" to the PATH variable in environment settings.
- Open Command Prompt and try out the java --version command.
java --version openjdk212023-69-19 OpenJDK Runtime Environment (build 21+35-2513) OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
Thats all!
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
More Posts related to Java-JDK-21,
- Installing Java JDK 21 Final Release Candidate
- Steps to Install Java 21 (LTS JDK) on Windows 11
- How to install and Use Java JDK 21 Initial Release Candidate
- How to Enable Java JDK 21 Preview Features on IntelliJ
- Setting Up VS Code with Java JDK 21
- Java JDK 21 LTS Version Release Date (General Availability)
- [JEP 430] Java JDK 21 New Feature - String Templates (Preview)
- How to use Java JDK 21 with IntelliJ
- Java JDK 21: JEP 439 - An Improved Generational Z Garbage Collector (ZGC)
- [JEP 431] Java JDK 21 New Feature - Sequenced Collections
- Java JDK 21 - The Latest LTS Version
- Java JDK 21 - JEP 440 - Record Patterns
- Fix - Unsupported major.minor version 65.0 (Java JDK 21)
More Posts:
- How to enable Do Not Disturb (DND) mode in Microsoft Teams - Teams
- Create an AWS User using CLI2 Command at a specific Path - AWS
- Fix: zipfile.BadZipFile: File is not a zip file Python - Python
- Java XML-RPC java.net.BindException: Address already in use - Java
- How to ls command to output one entry per line [macOS/Linux/Bash] - Linux
- How to quit or exit SFTP Prompt on Terminal - Linux
- Steps to Delete a SharePoint Site - SharePoint
- How to add duration to Android Toast makeText method - Android