3.3. Installing and Configuring your Java JDK

  1. Download the Java JDK and install it a directory without white spaces. For example, c:\Java.

    Ensure that the JDK folder is located inside the Java folder.

  2. Add the JAVA_HOME environment variable:

    1. Click Control Panel > System and click the Advanced system settings link.

    2. Click Advanced, then click Environment Variables.

    3. Add JAVA_HOME as a new system environment variable and specify the Java Development Kit installation path as the value, and then click OK. For example, c:\Java\jdk1.7.0_51.

  3. From the command line, validate the JAVA_HOME environment variable. Enter: Echo %JAVA_HOME%

    The path you specified as the JAVA_HOME value should be returned. For example: c:\Java\jdk1.7.0_51

  4. As the administrator, update your PATH environment variable:

    1. In the System Variables field, select PATH and click Edit.

    2. After the last entry in the PATH value, enter a semi-color and add the installation path to your JDK. For example: ...;c\Java\jdk1.7.0_51\bin.

    3. Click OK.

  5. From the command line, validate your PATH environment variable edit by entering: java version

    The return value should b the JDK version details. For example: Java version "1.7.0."