installation of JDK files
1, EXE installation
Double-click the local JDK file,
For installation. The official download address for JDK is:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Select Acceptlicense agreement and select the JDK version you want to install. Here, the X86 corresponds to the 32-bit system, and the X64 corresponds to the 64-bit system. 2. Folder Installation
From a computer that already has the JDK installed, copy the JDK folder and copy the JDK folder to the directory you want. such as C:\ProgramFiles\jdk1.7.0_21 II, the configuration of environment variables
Right-click My Computer, select Properties (or press windows+pause) and pop up the following dialog box:
Select "Advanced"-"Environment variables":
3 system environment variables need to be modified. 1, Path
Select path and click "Edit":
Append ";%java_home%\bin" after the original variable value. Where semicolons are used to separate values from the preceding variables. 2, Classpath
Select Path, click Edit, append to the original variable value
“; %java_home%\lib\dt.jar;%java_home\lib\tools.jar ".
If you don't find this variable, add it. 3, Java_home
4, add a variable named "Java_home", variable value for you to install or copy the JDK folder where the path, such as "C:\ProgramFiles\jdk1.7.0_21" three, verify that the configuration was successful
Open the computer's Command line window, enter "Java-version", return, the following results appear:
The configuration succeeds.