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 Download Jira App for Mac - Jira
- Multiple Microsoft 365 Services Down (Outlook, Teams, SharePoint, OneDrive) - 25 January 2023 (Solved) - Microsoft
- Power BI error Something went wrong, unable to read the application metadata - Microsoft
- [Fix] MySQL ERROR 1054 (42S22): Unknown Column - MySQL
- How to add Back Button on Toolbar in Android [Tutorial] - Android
- Java: How to convert a file to String - Java
- How to migrate SharePoint Designer 2010 workflow to Power Automate FLOW (Microsoft Office 365) - SharePoint
- Microsoft Sign-in Error Code: 50058 (Request Id, Correlation Id and Timestamp) - Microsoft