First, the resources download
Official website: http://www.oracle.com/technetwork/java/javase/downloads/index.html
I installed is jdk1.8, Baidu Cloud resources: Link: https://pan.baidu.com/s/1s674_5DjnsUO1A0_JGCLpg Password: vx2i
Second, install the JDK, note the JRE installation
The installation results are as follows:
Third, configure environment variables
1. Locate the environment variable configuration location
Right click on My Computer "properties" and follow the steps below
2. Modify Environment variables
1. New JAVA_HOME environment variable
2, new CLASSPATH environment variable, note the value of the variable is:.; %java_home%\lib;%java_home%\lib\tools.jar (all the same, do not change, direct copy, note the front dot and semicolon)
3. Modify the environment variable path
Double-click the environment variable path to create a new two variable in the popup box, as follows
%java_home%\bin
%java_home%\jre\bin
Note: This is in the WIN10 system environment, in the Win7 system This step is different, the Win7 system is directly in front of the path with the following variables
%java_home%\bin;%java_home%\jre\bin;
4. Last note Save all environment variable settings
Third, test the installation configuration results
Command line: java-version
The installation configuration is successful with the following interface type
Setting up a Java development environment in Windows environment (i): JDK Installation and configuration