1. Download address
https://www.oracle.com/java/technologies/javase-downloads.html
For example, the downloaded JDK address is: https://download.oracle.com/otn-pub/java/jdk/14+36/076bab302c7b4508975440c56f6cc26a/jdk-14_windows-x64_bin.exe
If you download the JDK13 version, open the following address:
https: //www.oracle.com/java/technologies/javase-jdk13-downloads.html
http://download.oracle.com/otn-pub/java/jdk/13.0.2+8/d4173c853231432d94f001e99d882ca7/jdk-13.0.2_windows -x64_bin.exe
2, mounting
the double-click on the downloaded installation package can be installed, such as where we install D: \ Net_Program \ Net_Java
. 3, configure the environment variables
open environment variables, variables in the system increments the variable named JAVA_HOME variable value D:\Net_Program\Net_Java
Next modify the Path system variable, double-click the Path system variable, and create a new %JAVA_HOME%\bin and %JAVA_HOME%\jre\bin, and
then add a new variable named CLASSPATH variable value.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
and then confirm.
4.
Run the CMD as an administrator and enter java to see if the installation is successful. If the following prompt appears, it means that the installation is successful.
Create a new TestQuber.java file with the following content. Then run CMD as an administrator, enter javac TestQuber.java to compile this file, and then enter java TestQuber to output Hello Quber in CMD Characters, the contents of the TestQuber.java test file are as follows:
public class TestQuber {
public static void main(String[] args) {
System.out.println("Hello Quber");
}
}