Install Java 18 on Windows 10
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. 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“:
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:
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:
The installation continues for some seconds:
The installation finishes as in the following screenshot.
Click on Close:
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:
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,
A new dialog box would be visible. Now, click Environment Variable:
Go to the System Variables section and double click Path as in the below screenshot:
Now, the steps are displayed as a list marked in the below screenshot:
Press Ok. Repeat the same for all the opened dialog boxes.
This ends the installation and the procedure to set the path for JDK. Now, we will verify the JDK installation.
Verify Java JDK 18 Installation
We saw how to install Java JDK 18 above. We installed it on Windows 10 OS. Now, we can easily verify whether the installation was successful or not using the following command:
Let us implement the above command on command prompt (cmd) and verify Java installation:
If the above is visible, that would mean you have successfully installed Java on Windows 10.
In this tutorial, we saw how to install Java on Windows 10. After installation, we also set the JDK path, without which the system won’t run Java programs. In the end, we verified the installation of Java JDK 18 successfully.
If you liked the tutorial, spread the word and share the link and our website LANGUAGE CODING with others.🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺🥺
0 comments:
Post a Comment