Home
‹
Java JDK 21
‹
How to install and Use Java JDK 21 Initial Release Candidate
How to install and Use Java JDK 21 Initial Release Candidate
Created: 24th Aug 23
1 Views
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
Source: https://jdk.java.net/21/
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!
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
Thanks for your feedback! If you have time, please provide details by selecting options below.
Submit Feedback
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!