1. Download the JDK file (http://www.oracle.com/technetwork/java/javase/downloads/index.html)
2. Installing JDK Files (jdk-8u91-windows-x64.exe)
3. Configure environment variable information (right-click "My Computer"-"advanced"-"environment variable")
1) Create a new "java_home" variable in the system variable, the value of the variable is: E:\Program files\java\jdk1.8.0_91 (fill in according to your own installation path)
2) New "classpath" variable, the value of the variable is:.; %java_home%\lib;%java_home%\lib\tools.jar
3) Add the variable value in the path variable (existing without new):%java_home%\bin;%java_home%\jre\bin (Note the ";" between the variable values) Separate, note win10, click Edit text)
4) "Start"-"Run"-enter "Javac" and "enter" if you can print the usage instructions successfully!
Analysis of supplemental environment variables:
The installation path of the JAVA_HOME:JDK;
Classpath:java load Classpath, only the class is recognized by the Java command in Classpath, and a "." is added before the path. Represents the current path;
Path: The system can identify the Java,javac command under any path;
JDK installed in Windows environment