Official website download
Open the official website directly: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
I installed version 1.7, of course, you can choose the appropriate version for yourself.
Install
The .exe file is downloaded. There is nothing to say, it is just next step. Of course, you can choose the appropriate installation path, I chose F:/Java.
Then select the jre installation path:
Environment variables
Right-click on the desktop, click Properties-Advanced System Settings-Environment Variables, and you can start editing.
1. First, click the New button in the system variable below and add the JAVA_HOME system variable. The variable value is the path to store the JDK, such as: F:/Java/jdk1.7.0_79.
2. Then click the new button again to add the CLASSPATH system variable, the variable value is: .;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;
3. Still in the system variable, find the Path variable, edit it, and add %JAVA_HOME%/bin at the end.
No need to restart
Open cmd with Win+R key combination and type in java -version command
The version of JDK currently installed is displayed, and it is considered complete. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!
The next article introduces you to the Java zero-basic tutorial on how to install and start Tomcat server under Windows (installation-free version). Interested friends, please pay attention to the Wulin.com website!