Download and Install JDK (Java Development Kit)

The latest version of jdk is 6 (update 1) at the time of writing the tutorial. You can download the latest version of jdk from http://java.sun.com/javase/downloads/index.jsp. Once you download the exe file you can now install it. Just follow as mentioned:

To install the jdk, double click on the downloaded exe file (jdk-6u1-windows-i586-p.exe) 

Step 1. Double Click the icon of downloaded exe.

You will see jdk 6 update 1 window as shown below.

 

Step 2: Now a "License Agreement" window opens. Just read the agreement and click "Accept" button to accept and go further.

Step 3: Now a "Custom Setup" window  opens. 

Step 4: Click on "Change" button to choose the installation directory. Here it is "C:\Program Files\ Java\jdk1.6.0_01". Now click on "OK" button.

Clicking the "OK" button starts the installation. It is shown in the following figure.

 

Step 5: Next window asks to install Runtime Environment

Click the "Change" button to choose the installation directory of Runtime Environment. We prefer not to change it. So click "OK" button.

Step 6: Click "OK"  button starts the installation.

Step 7: Now "Complete" window appears indicating that installation of jdk 1.6 has completed successfully. Click "Finish" button to exit from  the .