How to install Java 15 in Windows?

Today September 15 Java 15 is now available as General Availability (GA). Oracle OpenJDK 15 is available to download under GNU General Public License v2 with Class Path Exception (CPE). In this blog post, we are going to see how to install JDK 15 in Windows operating system.

How to download Java 15 and validate sha256?

Pay a visit to https://jdk.java.net/15/ and then click on respective download link under Builds as shown below. In our case, it is Windows/x64. Click on the zip file to download.

How to install Java 15 in Windows?
How to install Java 15 in Windows?

After downloading the zip file, it is time to validate the sha256. Power up your terminal and enter the below command to get the file hash.

Validate SHA256
Validate SHA256

Get-FileHash <path to your zip file>

Java is 25 years young

How to configure the environment variable for Java 15 in Windows?

In Windows search box, type environment and then click on Edit the system environment variables as shown below.

System Environment Variables
System Environment Variables

Click on Environment Variables... button in System Properties.

System Properties
System Properties

Under User variables double click on Path and add the path of the extracted zip file of OpenJDK as shown below. Click on OK to configure the path.

Add Java to Path
Add Java to Path

After configuring path, add JAVA_HOME under System Variable as shown below.

JAVA_HOME
JAVA_HOME

Alternatively, you can map the JAVA_HOME variable in the Path as shown below.

JAVA_HOME in Path
JAVA_HOME in Path

How to validate the configuration?

Launch Powershell or Command Prompt and enter the below command.

java -version

If the path is set correctly, you will get the latest version information which is OpenJDK 15 as shown below.

java -version
java -version

If you are working in JMeter, you upgrade to OpenJDK 15 and validate your JMeter infrastructure.

Below are the new features of JDK 15.

Features of JDK 15

339:Edwards-Curve Digital Signature Algorithm (EdDSA)
360:Sealed Classes (Preview)
371:Hidden Classes
372:Remove the Nashorn JavaScript Engine
373:Reimplement the Legacy DatagramSocket API
374:Disable and Deprecate Biased Locking
375:Pattern Matching for instanceof (Second Preview)
377:ZGC: A Scalable Low-Latency Garbage Collector
378:Text Blocks
379:Shenandoah: A Low-Pause-Time Garbage Collector
381:Remove the Solaris and SPARC Ports
383:Foreign-Memory Access API (Second Incubator)
384:Records (Second Preview)
385:Deprecate RMI Activation for Removal

Have you upgraded to JDK 15? Please share me your experience in the comment section.

About the Author

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Hamster - Launch JMeter Recent Test Plans SwiftlyDownload for free
+
Share via
Copy link