overview
- A good installation tutorial can help developers complete more convenient and faster development.
- There are roads and diligence in the mountain of books, and there is no limit to the sea of learning. I am Qiu Zhiye, and I hope that every developer who reads my articles can grow up.
1. Download JDK
- download here
JDK17
windows
x64 installer
2. Install JDK
-
Double click to open the downloaded
jdk-17_windows-x64_bin.exe
-
click next
-
Click Change to choose the installation location and create a separate folder to save the JDK
-
click next
-
The installation is complete
-
click to close
Two, configure jdk
-
Right click on This PC and select Properties
-
Click on Advanced System Settings
-
Click Advanced, then Environment Variables
-
Environment variables for the new JDK
-
variable name:
JDK_HOME
-
Variable value: Click Browse Directory to select the directory where we installed JDK17 just now
-
click OK
-
Add jDK to system variables
Path
-
Click Path, then click Edit
-
New environment variable
-
Type or copy and paste
%JDK_HOME%\bin
-
Enter, then click OK
-
To test whether the configuration is successful, press the win button + R to enter cmd and press Enter, and enter java in the terminal
-
ok, complete the test