The installation process is the same as other software installation procedures, not to mention, it is worth mentioning that after the JDK installation is completed, the installation of the JRE will be required because the JDK and JRE are now packaged together and are directly selected for installation
Next configure the environment variables, right click on the desktop computer, click Properties, then select Advanced Properties
In the popup dialog box, select environment variable, edit, path and name
New system variable, name: Java_home, Path: JDK installation path, find the JDK installation directory, and then copy the path, paste it over.
6
Name: Classpath path:.; %java_home%\lib;%java_home%\lib\tools.jar (because this refers to a relative path, copy the past directly, note the previous "." and ";" )
7
Then find the path variable, click Edit paste:;%java_home%\bin;%java_home%\jre\bin
Because there are other variables in front, note the ";" Separated.
Configuration of Java Environment variables