JAVA JDK installation and configuration environment variable

First, download the JDK

Search jdk, came in first in general that is the official website to download the address below
Here Insert Picture Description
to find the target and download the version of jdk
Here Insert Picture Description
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"
Here Insert Picture Description

Then enter the settings "Environment Variables", the new required environment variablesHere Insert Picture Description
Here Insert Picture Description

  1. New JAVA_HOME variable, i.e. the installation path jdk
    Here Insert Picture Description
  2. Find CLASSPATH variable, if not, to be the new
    ;.% JAVA_HOME% \ lib; % JAVA_HOME% \ lib \ tools.jar
    Here Insert Picture Description
  3. Find the Path variable to edit the "% JAVA_HOME% \ bin" and "% JAVA_HOME% \ jre \ bin" Path variables added value in
    Here Insert Picture Description
  4. 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
Here Insert Picture Description
input in Java + Enter cmd window displays information pertinent to the java;
Here Insert Picture Description
type in cmd window Javac + Enter showing information compiled Java
Here Insert Picture Description

Published 18 original articles · won praise 1 · views 784

Guess you like

Origin blog.csdn.net/aha_jasper/article/details/104726656