Download the installation package
You can go to the official website to download it yourself, download link:
Software Download | Oraclehttps://www.oracle.com/downloads/#category-java
Just select the version you want to download and download it.
Installation process
After downloading, double-click to enter the installation. The version I installed is jdk1.8. If you need it, please contact me in the comment area.
Next, follow the steps. The installation path here can be changed. I personally recommend not to change it, just use the default installation address. It is not very big, so just keep going to the next step.
Environment configuration
After the installation is completed, the next step is to configure the environment. Right-click My Computer (This Computer) to find Properties and enter to find Advanced System Settings.
Click to enter and find the environment variables.
Then in the system variables column, create a new variable.
1. Configure CLASSPATH
Variable name: CLASSPATH
Variable value: .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jara
Then click Confirm
2. Configure JAVA_HOME
Variable name: JAVA_HOME
Variable value: C:\Program Files (x86)\Java\jdk1.8.0_201, Note: This value is the path to install jdk yourself.
3. Configure Path
Click Edit, then create new, add %JAVA_HOME%\bin, %JAVA_HOME%\jre\bin respectively
At this point the environment is configured.
Check whether the configuration is successful
Win+R opens Run, enter cmd, and enter the terminal.
Enter Java -version and press Enter. You can see a version number, indicating that the configuration is successful.
Write it at the end to record your own learning process and also to facilitate others. Everyone is welcome to communicate and learn together.