The General Availability (GA) date for Java JDK 21, the latest Long Term Supported (LTS) version of Java is 19th September 2023, which is less than a month from now.
But if you are curious to understand and try out Java 21, you can do so by downloading the latest OpenJDK JDK 21 Release-Candidate builds
Links to OpenJDK JDK 21 Release-Candidates for all Operating Systems
Linux / AArch64 | tar.gz (sha256) | 201583910 |
---|---|---|
Linux / x64 | tar.gz (sha256) | 203348211 |
macOS / AArch64 | tar.gz (sha256) | 197305058 |
macOS / x64 | tar.gz (sha256) | 199663920 |
Windows / x64 | zip (sha256) | 201151266 |
As I make use of an ARM-based M1 Macbook, I downloaded the macOS / AArch64 and extracted the .tz file in my download's folder,
% pwd
/Users/c2ctech/Downloads/jdk-21.jdk/Contents/Home/bin
% ./java --version
openjdk 21 2023-09-19
OpenJDK Runtime Environment (build 21+35-2513)
OpenJDK 64-Bit Server VM (build 21+35-2513, mixed mode, sharing)
As the tradition goes, let's try out the "Hello World!" example.
public class HelloWorldJdk21 {
public static void main(String... args) {
System.out.println("Hello World from Java JDK 21!");
}
}
% ./java HelloWorldJdk21.java
Hello World from Java JDK 21!

-
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to Java-JDK-21,
- Steps to Install Java 21 (LTS JDK) on Windows 11
- Setting Up VS Code with Java JDK 21
- [JEP 430] Java JDK 21 New Feature - String Templates (Preview)
- Java JDK 21: JEP 439 - An Improved Generational Z Garbage Collector (ZGC)
- Java JDK 21 LTS Version Release Date (General Availability)
- Installing Java JDK 21 Final Release Candidate
- Fix - Unsupported major.minor version 65.0 (Java JDK 21)
- How to use Java JDK 21 with IntelliJ
- How to Enable Java JDK 21 Preview Features on IntelliJ
- Java JDK 21 - The Latest LTS Version
- How to install and Use Java JDK 21 Initial Release Candidate
- [JEP 431] Java JDK 21 New Feature - Sequenced Collections
More Posts:
- Java monitoring and management console [jconsole] - Java
- JSON column formatting to preview SharePoint Online file on mouse hover - SharePoint
- 3 Examples to read a text file line by line using java - Java
- MySQL: Error Code: 1175 You are using safe update mode - MySQL
- [Solved] com.sun.xml.ws.transport.http.servlet.WSServletContextListener ClassNotFoundException - Java
- How to hide or cancel Toast message in Android Programming - Android
- [Android] Sharing Multiple Images to Twitter App from your App - Twitter
- How to Stop Mac from Sleeping (macOS Ventura and Above) - MacOS