Since Java was sold to Oracle, updates are getting faster and faster, and version iterations are getting more and more frequent. The pages and flow in the previous tutorial have also changed, so update it. This article uses the latest version of Java SE 15 as the template.
1. Download
Java SE 15 address
www.oracle.com/java/techno…
Windows 64-bit JDK 15.0.1_windows-x64_bin.exe
If you need to change the installation address, you can directly change it to the preset address (the installation directory cannot contain Chinese characters).
The Java SDK installation is complete.
2. Configure environment variables
1. The following variables need to be configured:
The variable name
The path
note
JAVA_HOME
C: \ Program Files \ Java \ JDK – 15.0.1
Path
%JAVA_HOME%\bin
Path
%JAVA_HOME%\jre\bin
CLASSPATH
.; %JAVA_HOME%\lib; %JAVA_HOME%\lib\dt.jar; %JAVA_HOME%\lib\tools.jar