×
DocsConsole

DocsConsole

How to Install the Java in Windows

By | | Updated : 2019-05-26 | Viewed : 300 times

Java HelloWorld Example

The current article describes about the installation of java in windows. Please verify the java installation process given below.

How to Install the Java in Windows

Download the Java latest version for the Oracle website click here. We can install the Java in two ways one is by executing the exe file another one is by extracting the zip file

Download the Java latest version for the Oracle website click here. We can install the Java in two ways one is by executing the exe file another one is by extracting the zip file

By Executing the exe file:

Please click on the downloaded exe file then follow the steps as given below. When you click exe file it will prompt window as given below.

Java installation

Please click on the next button then we will get the below-given window.

Java installation

Please select the installation path and click the next button. You can see the window as given below.

Java installation

Java has been installed successfully. You can click on the close button now.

By Extracting the zip file:

Please download the zip file from this link click here. We need to extract this file as given below. Here we need to give a path where we are going to install.

Please download the zip file from this link click here. We need to extract this file as given below. Here we need to give a path where we are going to install.

Java installation by extracting zip

Set up the Path variable

In both installations shown above, we need to set up the PATH system variable. Please follow the process as given below.

Please right-click on the This PC and then click on the properties as given below.

Setup System PATH variable

Once you click that properties one window will be prompted as given below

Java System Path variable setup

Click on the Advanced System settings then you can see the window as given below.

Java Path variable setup

Click on the Environment variable and below given window will be prompted.

Java Path System Variable setup

Crate the variable called JAVA_HOME as given below. Here we need to provide the JDK home path for a variable value.

JAVA HOME setup

Now we need to edit the path variable as given below. Here we need to provide the Java bin directory. For example D:\Installation-Home\Java\jdk-12.0.1\jdk-12.0.1\bin;.;

Java Path variable setup

Now we can test the java installation whether it is installed successfully or not. Please see the below given screenshot.

Java installation testing
Leave A Reply