How To Install Java In Windows Step By Step

How To Install Java in Windows

In this article, we learn how to check if java is installed or Not, how to download java, how to install java in windows, and how to set environmental variables in java.

How To Check Java is Installed or Not

Before installing the Java Development Kit, check if a Java version is already installed on Windows.

To check if you have Java installed or not on a Windows, search in the start bar for Java or type the following in Command Prompt:

java version

 

If Java is installed, you will see the java version like this.

java version 2

 

 

If you do not have Java installed on your laptop, you can download it for free at oracle.com.

How To Download Java Development Kit (JDK)

First Click on the below URL.

https://www.oracle.com/java/technologies/downloads/

After going to the download page select the windows section and click on the URL of x64 Installer. (Highlighted in yellow color)

oracle 1

How To Install Java in Windows

After downloading the installation file, proceed to install Java on your Windows system.

Double-click on the downloaded file to start the installation.

After running the installation file, the Installation Wizard welcome screen appears.

Click on the Next button to proceed to the next step. (Highlighted in yellow color)

oracle 2

Select the destination folder for the Java installation files or stay on the default path. Click on the Next button to proceed to the next step. (Highlighted in yellow color)

oracle 3

Wait for the wizard to complete the installation process until a successfully installed message appears. Click on the Close button to exit the wizard.

oracle 4

How To Set Environmental Variables In Java

We set Java environment variables to enable program compiling from any directory.

Open the Start menu and find Environmental Variables.

Click on Environmental Variables which is located in the System Properties window, under the Advanced tab. (Highlighted in yellow color)

java 3

Under the System Variables category, double-click on the path. (Highlighted in yellow color)

java 4

Click on the New button and enter the path to the Java bin directory. (Highlighted in yellow color)

Click on the OK button to save the changes and exit the variable editing window.

java 5

Other Popular Articles

Leave a Comment