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
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.Create
JAVA_HOME
environment variable.The variable must point to the directory in which the JDK is installed, such asC:\Program Files\Java\jdk<VERSION>\
:- Click Start Menu.
- Click Control Panel.
- In the Control Panel window, write
Control Panel\System and Security\System
and press Enter. - In the System window, click Advanced system settings on the left.
- In the System Properties dialog box, click the Environment Variables button.
- In the System variables part of the dialog box, click the New button.
- 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.
Add the JDK's
bin
directory to Path.In the System variables part of the System Properties dialog box, select thePath
environment variable and click Edit: in the displayed dialog box, append;%JAVA_HOME%\bin
to the end of thePath
value.