If you want to run Java on your computer, you need to install the JDK and configure environment variables.



Download the JDK

Here is my cloud disk address:

Link: pan.baidu.com/s/1CYmF7V2z… Extraction code: DLNA

Configuration variables









Create two system variables:

First variable :(variable name is JAVA_HOME, variable value is the JDK installation path, you can choose “browse directory”, select the JDK installation path)



Second variable: (CLASSPATH, value:.%JAVA_HOME%bin; % JAVA_HOME % \ jre \ bin;) Pay special attention to the point where the value of a variable begins with an English symbol and ends with a semicolon.



After configuring variables, open CMD to test whether the configuration is complete:



To check the JDK version, open CMD and type “Java -version” :



If you enter Javac, the following information is displayed:



Enter Java. If the Java version information is displayed, the configuration is successful.