The small Editor downloads the jdk1.6 version and explains how to install it,
My jdk installation directory is under this directory
Next we will configure the Environment Variables
Java_home
Classpath
You can refer to the configuration process of java_home and create a new system variable. However, the classpath variable name is classpath and the variable value is.;% JAVA_HOME % \ lib;% JAVA_HOME % \ lib \ tools. jar
(Add.Indicates the current path ).
Path
The path variable already exists in the system variable. to modify the path variable, you only need to select the path variable and click Edit. Add the following content to the variable value: % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin.
We recommend that you put the JDK bin path at the beginning of the original path. Because there is a java.exe/javaw.exe in % SystemRoot % \ system32, which is the JRE that comes with the Windows operating system,
If we install it on our own, we should not use the default JRE. We can install it on our own. If you put the JDK bin path at the beginning, it will be used first.
3. test whether the environment variable configuration is successful:
Enter the java-version command to view the installed JDK version. Enter the java command to view the help information of this command. Enter the javac command to view the help information of this command. If you see it as expected, the JDK is successfully installed.