Java Installation

In this tutorial you will learn about the Java Installation and its application with practical example.

Java Installation

Installing Java In Windows

In order to setup Java development environment you need to have Java installed, so if you don’t have it installed, check the following instruction to get Java Language installed. If you’ve already have installed Java Language in your system, you can skip this part.

Java is freely available on Oracle’s website, and you can download and install it for free.

Step 1:- Download the Java Development Kit (jdk) from the official Oracle website, link given below –

Step 2:- Run the installer (the .exe file you downloaded in the previous step.)

java-installation-1

 

Step 3:- Follow the installation wizard to install Java.

java-installation-3

Step 4:- Select the Installation path and click next.

java-installation-4

java-installation-6

Step 5:- Now, lets open the terminal and run the following command in order to verify the Java installation.

java-installation-7

Set Path Environment Variable

Once the installation is done, you are required to set PATH environment variable in order to run any of the the java executable (javac.exe, java.exe, javadoc.exe, and so on) from any directory.

Step 1:- Assuming that you have installed Java in “C:\Program Files\Java\jdk1.8.0_91\bin” directory

Step 2:- Right-click on “My Computer” and select “Properties”

Step 3:- Click on the ‘Environment variables’ button under the ‘Advanced’ tab.

Step 4:- Now add or edit the ‘Path’ variable so that it also contains the java path as following –

In this tutorial we have learn about the Java Installation and its application with practical example. I hope you will like this tutorial.