How to Install Java 18 on Windows 10

Amit Diwan
3 min readMar 23, 2022

Java 18 released on 22nd March 2022. The need for its usage is scaling high these days. In this article, we will learn how to install Java JDK 18 on Windows 10 OS. With that, to avoid any hassles in the future, we will also let you know how to verify the installation.

Install Java JDK 18

Following are the steps:

  • Download Java 18
  • Install Java 18
  • Set Java JDK Path (Environment Variable)
  • Verify Java JDK 18 Installation
  • Run Sample Java Program

Let us begin with the 1st step:

Download Java 18

To download Java 18, go to Oracle’s official website and click Download Java:

Download Java from Oracle’s official website

Now, the Downloads page will be visible.

Go to the bottom of the page, and click on the Windows installer i.e. jdk-18_windows-x64_bin.exe as shown below:

Java 18 Download

Install Java 18

Double click on the downloaded .exe file.

Java 18 Downloaded

Installation begins. Click on Next:

After clicking Next, the following Destination Folder section is visible. Set the path wherein the Java 18 directories and files will get installed. Keep it the default i.e. here it will install under the following path: “C:\Program Files\Java\jdk-18″. Click on Next:

Destination folder for java installation

The installation continues for some seconds:

The installation finishes as in the following screenshot.

Click on Close:

Java 18 installation completed

Now, let us set the JDK path.

Set Java JDK Path (Environment Variable)

At first, copy the path wherein you installed the Java JDK. Let us copy it first. Remember, we need to copy the bin path i.e. the following on our system:

C:\Program Files\Java\jdk-18\bin

Here’s the screenshot of the bin path, wherein we installed Java 18:

Java bin path

To set JDK Path, the easiest way is to type Environment Variables on Start. On typing, the following would be visible. Now, click on Edit Environment Variables,

Environment Variables

A new dialog box would be visible. Now, click Environment Variable:

Read the complete article here: https://studyopedia.com/java/install-java-windows/

Amit Diwan, Founder of Studyopedia.com and Amit Thinks, a Programming Youtube Channel. Serving more than 620k unique viewers and 1.2 million monthly views on the YouTube Channel. Creates Video and Text Courses for varied domains: Programming, Web Dev, Database, AI, Machine Learning, etc.

Amit’s work has been featured in Sitepoint (Australia’s leading E-Learning website), TutorialsPoint (World’s Leading E-Learning website with more than 1200 text/video courses). Awarded MVP (Most Valuable Professional) by C# Corner in 2016. Taught more than a million students, engineers, and professionals with his videos on YouTube and other platforms.

--

--

Amit Diwan

Amit Diwan, Founder of Studyopedia.com and “Amit Thinks”, a Programming Youtube Channel. Serving more than 850k unique viewers and 1.4 million monthly views.