Installation Preparation:
1. JDK Software (Java SE Development Kit 8). Note 64 bits. : http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Installation:
Install JDK, default parameters.
Configuration:
1. Create a new system variable
Select New System Variable--pops up the new System Variable dialog box, enter "Java_home" in the Variable name text box, and enter the installation path for the JDK in the Variable value text box.
Example: C:\Program files\java\jdk1.6.0_10
2. Path variable increment value
View the path variable in the system Variables options area, and if it does not exist, create a new variable path, otherwise select the variable, click the Edit button, and add "%java_home%\bin;%java_home%\jre\bin;" At the beginning of the Variable Value text box. or direct "%java_home%\bin;", click the OK button. It is recommended that you copy to Notepad for editing.
3. Increment of CLASSPATH variable value
View the CLASSPATH variable in the system Variables options area, and if it does not exist, create a new variable classpath, otherwise select the variable, click the Edit button, and add "in the start position of the Variable Value text box."; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ".
Test:
Go to cmd as Administrator, enter the following three parameters test, if there is print information, the surface JDK running environment is successful.
Three commands:
Java-version
Java
Javac
Note that the value of the variable is not lost.
Java Win server2008 Configuration and testing of X64-bit JDK environment variables