JDK download - install - configure

1. JDK download

jdk1.8 version download address:

http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

  Enter the download interface and select accept, download the 64-bit jdk of version 1.8 (according to your computer version), as shown in the figure

2. JDK installation

Run the downloaded jdk, as shown in the figure:

The installation process is as follows:

 In this step, you should remember the installation address to facilitate subsequent jdk configuration

 

 

 

Installed files:

 

 3. JDK configuration

Configuration of environment variables (three):

JAVA_HOME : C:\Program Files\Java\jdk1.8.0_171

PATH:     %JAVA_HOME%\bin

        %JAVA_HOME%\jre\bin

CLASSPATH:  .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar(,;%JAVA_HOME%\lib)

 

The meaning of each variable: 

%JAVA_HOME% represents the C:\Program Files\Java\jdk1.8.0_171 path, which can be replaced in the path and classpath variables

 JAVA_HOME: As the name suggests, the installation directory of jdk

PATH: The path to be searched by the Windows system when executing commands

CLASS_PATH: The path of the class to be loaded by Java when compiling and running

 The configuration steps are as follows:

 

 

 

 

 

 

 

 

 

 Verify that the jdk installation is successful, win+R to enter cmd:

 

Type the java and java -version commands respectively, if the following status appears, the installation is successful

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325898363&siteId=291194637