This document is written by Xu Haojun (32/64-bit systems apply)
1. Download the JDK installation package you
2. Click Install package to start the installation
3. First you have to choose the installation address in general, the default address will be selected.
(Please remember this address, you need to configure the environment variable later)
4. At this point, he will create this folder in the directory you specified.
5 then start the installation, that is, there is a folder created in it
6, then he will remind you again to choose the directory installation, many people this step is directly ignored, in fact, can not be ignored, then install a folder like this, you should install it in the first time to remember the address. (that is, installed in .../java in this folder)
7, the next step is to set the environment variable.
First right-click My Computer to open the Properties panel.
Click on the advanced system settings on the left to open the environment variable at the point
In the system variable, create a new java_home variable with the variable value set to C:\Program files\java\jdk1.8.0_101
(Of course, everyone put the directory is not the same, so according to their own installation of the directory modeled above, write up on the line)
Then, in the system variable, create a new classpath variable and add it after its variable value.; %java_home%\lib
(especially note that this variable value, you do not need to change, directly copy and paste on the line, remember, the first point of the number do not forget)
Finally select the path variable in the system variable, click the Edit button, add at last;%java_home%\bin
(Pay special attention to this variable value, you also do not need any changes, directly copy and paste on the line)
Click the OK button. The JDK is now ready to install.
The last is the test.
Open cmd. Input Java, showing the various information of Java,
Re-enter Javac, if the same information is displayed on Javac, then,
Congratulations, Java Environment JDK, you are ready to install.
Java language Environment (JDK installation tutorial)