Step 1: First look at the success of the configuration after the effect
Point win key-> run (or use win+r)
Enter cmd command
Input Java-version
After the configuration is successful, the version information, Java version "1.8.0_65", appears.
Step 2: Download and extract to E:/jdk
The correct directory is E:/JDK
Don't copy it to the E:/JDK/JDK directory.
Note Directory structure
Step 3: Environment variable Configuration
Right-click My Computer-> Properties-> Advanced-> Environment variables-> System variables
Note: The following system variable, not the user variable above
New variable name java_home, variable value E:\JDK
Modify the variable Path, plus%java_home%\bin at the front;
Note: "Path" is the first letter uppercase, do not change to "path" bin followed by a semicolon;
Step 4: Verify that the configuration is successful
Click to confirm the closure of the configuration page, this step must be done, or just the configuration can not be effective
Point win key-> run (or use win+r)
Enter cmd command
Input Java-version
If the version information appears, the configuration is successful
If it fails, adjust the previous configuration and then restart the cmd command instead of entering java-version in the original cmd