1. Installing the JDK
2. Configure Environment variables
1) After installing the JDK, assume that the path to the JDK is "d:\java\jdk1.7". The configuration process is as follows
2) "My Computer" right button "Properties" > Advanced system Variables > environment variables, such as
3) Create a new system variable named "Java_home" with the variable value "D:\java\jdk1.7"
4) Create a new system variable named "CLASSPATH" with the variable value ".; %java_home%\lib;%java_home%\lib\tools.jar "
5) Modify the original "Path", move the cursor to the front of the variable (do not delete the original variable), add "%jaca_home\bin%", end with a semicolon.
6) can be found either in the command operator input Java or javac.
7) The command operator enters "java-version" and displays "Java version 1.7.x.xx" to indicate that the installation was successful.
Getting Started with Java-Configuring environment variables