Step 1: Install Java
JDK official website download address: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Because I downloaded Java for development and use, I chose JDK Download to download a full set of development tools
Now the official website has been upgraded to JDK16. At present, JDK8 is mostly used in the market. Not much nonsense. Next is the installation tutorial.
Double-click the above exe program to install. The whole process is very simple. The installation path is the default C drive: After the
installation is complete, you can see two folders JDK and JRE under the installation path, as follows:
Step 2: Deploy environment variables
After installation, you need to configure environment variables to use Java normally.
Click Computer -> Properties -> Advanced System Settings -> Environment Variables, and create the following variables:
Set 3 attributes in "User Variables", JAVA_HOME, CLASSPATH (not case sensitive), PATH, if it already exists, click "Edit", pay attention to separating it with a semicolon, and click "New" if it does not exist.
The variable setting parameters are as follows:
1. Variable name: JAVA_HOME Variable value: C:\Program Files\Java\jdk1.8.0_101
Click to browse the directory, find the location where jdk is installed, and
click OK.
2. Variable name: Path Variable value: %JAVA_HOME%\jre\bin; %JAVA_HOME%\bin Note: there is a semicolon in the middle and no semicolon at the end
Click to add
%JAVA_HOME%\jre\bin
%JAVA_HOME%\bin to
confirm, save, and exit the environment variable configuration
In the last step,
win+r enter cmd
java -version to check the java version and configuration, and return the following information to indicate that java has been installed and configured:
Baidu network disk link
Link: https://pan.baidu.com/s/1TAuTtCiZndXLp2aK99K0PQ
extraction code: 6666