1. Download the jdk1.8 installation package first
https://pan.baidu.com/s/1hvbVlAn2pKIVAyTx-HKTrA
提取码:gt76
2. For installation, except for this installation location, you need to pay attention to the following and all other next steps. You'd better find a place that is easy to remember for this installation location.
3. Set environment variables
Right click on my computer -> click on properties -> click on advanced system settings (left side) -> click on environment variables
%JAVA_HOME%\jre\bin
%JAVA_HOME%\bin
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
4. Test whether the installation is successful
win+R, then cmd, press Enter,
enter java and then press Enter, the following is the installation is complete,
enter javac and then press Enter, the following is the environment variable configuration