download
Choose the commonly used ones JDK 8
for installation, you can go to the official website to download or domestic mirrors, domestic mirrors are faster and more convenient
Here it is recommended to use Huawei’s mirror
https://repo.huaweicloud.com/java/jdk/
Select a version, and then download the system The corresponding version, my system is win 10 64-bit, choose to download as required,
then install JDK, select the installation directory,
and complete the installation in sequence
Configuration Environment
- Use search to find the system environment variable configuration, of course there are other ways to enter, I am used to using search
- Select Advanced - Environment Variables
- Configure system variables
First configure JAVA_HOME, configure to the folder where JDK is installed,
and then configure CLASSPATH.;%JAVA_HOME%\lib;
Then configure Path and create a new record%JAVA_HOME%\bin
test
Open cmd, the command operator interface
Simple test, if you can see the version number, it means the installation is successful