Installing and Configuring Java

1- Instroduction

This document is based on:
  • Java 8

2- Download JDK

You should check that the operating system is 32bit or 64bit, to download the appropriate JDK.
Download Result:

3- Installing Java

Enter the directory where the JDK will be installed, for example:
  • C:\DevPrograms\Java\jdk1.8.0_45\
After JDK installed, the installer will ask you position the JRE will be installed. Here I select:
  • C:\DevPrograms\Java\jre.8.0_45\
Java is installed successfully.
The results you get 2 directories:

4- Configure environment variable for Java

If you using Window Vista or Window 7:

From the Desktop, right-click the Computer icon and select Properties.
Click New to create a new environment variable named JAVA_HOME.
Enter the path to the JDK directory.
  • Variable name: JAVA_HOME
  • Variable value: C:\DevPrograms\Java\jdk1.8.0_45
Next modify the environment variable path
Add to front of path:
  • %JAVA_HOME%\bin;
You have successfully installed java.