B.5. Oracle JDK on Microsoft Windows

Use this procedure to install the Java Development Kit on Windows Server 2008 or Windows 2008 R2.

Procedure B.4. Installing and Configuring JDK on Microsoft Windows

  1. Download and install JDK.

    Download the Java Development Kit from http://www.oracle.com. Run and follow the on-screen instructions to install the JDK.

    Important

    Make sure that you download the correct JDK: check the Java version and architecture.
  2. Create JAVA_HOME environment variable.

    The variable must point to the directory in which the JDK is installed, such as C:\Program Files\Java\jdk<VERSION>\:
    1. Click Start Menu.
    2. Click Control Panel.
    3. In the Control Panel window, write Control Panel\System and Security\System and press Enter.
    4. In the System window, click Advanced system settings on the left.
    5. In the System Properties dialog box, click the Environment Variables button.
    6. In the System variables part of the dialog box, click the New button.
    7. In the New System Variable dialog box, define the JAVA_HOME as the variable name and <DISK>:\Program Files\Java\jdk<VERSION> as the variable value and click OK.
  3. Add the JDK's bin directory to Path.

    In the System variables part of the System Properties dialog box, select the Path environment variable and click Edit: in the displayed dialog box, append ;%JAVA_HOME%\bin to the end of the Path value.