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 Parse XML String in Python - Python
- Online Tool to Sort Data Alphabetical (Ascending/Descending) - Tools
- [Solution] IDEA IntelliJ System.out.println function shortcut (sysout alternative for eclipse IDE) - HowTos
- Python Sleep Function/Method Code Example - Python
- Python: Read a file into a List - Python
- How to check for Updates on Windows 11 - Windows-11
- How to install homebrew (brew) on M1 Mac - MacOS
- AlertDialog with no buttons (just text message) - Android