java download
Search to enter the official website, Oracle, follow the instructions to download (this machine uses JDK 8 )
Win11 must choose 64 bits, now choose 64 bits
https://www.oracle.com/java/technologies/downloads/#java8-windows
java SDK installation
1. Double-click the installation package directly to install it according to the default installation path or you can put it in other directories
2. Add environment variables, find environment variable settings under win11, click New under system variables
# 将路径更换为自己java安装路径
JAVA_HOME
D:/***/jdk1.8.0_144
Create a new CLASSPATH, pay attention to the previous comma and semicolon can not be lost
CLASSPATH
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
Find the path environment variable and click New
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
Whether the verification is successful
win+R 输入cmd,然后输入 java -version和javac 验证java环境是否安装成功
The following content is displayed to indicate that the installation is successful