1, install the JDK package.
2, after the installation is complete, "Start"-"Run" input "cmd", "java-version", if the correct output, indicating that the installation was successful.
3. Right button "My Computer"-"Properties"-"advanced"-"environment variable".
4, user variable new java_home, "Variable Value" section to fill the JDK installation path, such as: C:\Program files\java\jdk1.8.0_65.
5, System variables, new path, variable value "%java_home%\bin;%java_home%\jre\bin;" Or a direct "%java_home%\bin;"
(If Java is available when the configuration is complete, but Javac is unavailable, modify the value here to "C:\Program Files\java\jdk1.8.0_65\bin")
6, System variables, new pathclass, Variable value ".; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar, "There is not a sign here.
7, after the configuration is complete, enter "Java" at the command prompt, typing a large column of text, stating that there is no problem.
8, similarly, input "Javac", play a large string of Chinese characters, explain on it can be.
Configuring Java Environment variables