First check whether JDK is being installed in your system.
C:\> java -version
The output will look something like:
Java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Client VM (build 1.6.0_03-b05, mixed mode, sharing)
This means jdk 1.6 is installed and windows knows its path.
Just to ensure set the environment variable … Read more