First, download the JDK
Search jdk, came in first in general that is the official website to download the address below
to find the target and download the version of jdk
installation not introduced, all the way to the default installation, the path select the path they want to install, jdk and jre can choose installation path, I generally do not put the c drive
Second, configure the environment variables
"This computer / Computer" right-click "Properties", go to "Advanced System Settings"
Then enter the settings "Environment Variables", the new required environment variables
- New JAVA_HOME variable, i.e. the installation path jdk
- Find CLASSPATH variable, if not, to be the new
;.% JAVA_HOME% \ lib; % JAVA_HOME% \ lib \ tools.jar
- Find the Path variable to edit the "% JAVA_HOME% \ bin" and "% JAVA_HOME% \ jre \ bin" Path variables added value in
- After each edit, "Environment Variables", should click "OK" to save them, otherwise, you have to "New / Edit" environment variable is null and void
Third, the test results of the installation
To view the version information of the installed jdk, type "java -version" (case no impact) in the cmd window
input in Java + Enter cmd window displays information pertinent to the java;
type in cmd window Javac + Enter showing information compiled Java