[Environmental structures] - JDK download and install configuration

Copyright: Tiger's blog https://blog.csdn.net/qq493820798/article/details/90726380

A, JDK download

1. First enter the official website to download the JDK, Download https://www.oracle.com/technetwork/java/javase/downloads/index.html

Into the interface as follows:

 2. to turn the page at most, click history repository, they need to find the downloaded version, click to download (download here we JDK9)

 

 3. Then we follow the red arrows in the figure indicate click "Accept License Agreement", click here to accept it only can be downloaded, remember to choose their own operating system, as follows:

4. jdk currently whispered in the official website to download the landing when needed, here to share an online account to find, easy to download
[email protected] 
Password: Oracle123

Two, JDK Installation and Configuration

1, the installation

2. Environment Configuration

First we open the path jdk installed, I installed the D drive is here: to find their own path to step on Syria's record, find "bin" named folder, copy down this path, as shown below

After installing the computer environment variables JDK configuration properties → → → → Advanced Settings Advanced System Environment Variables 

         

           win7 ------------------------------------------------- -------------------

          

  1. → New system variable JAVA_HOME variable.

    Fill in the variable value of jdk installation directory (I was E: \ Java \ jdk1.7.0)

  2. System variables Path variable → Edit → Looking

    In the last input value of the variable% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin;

    (Note that the original value of the variable Path end there; number, if not, the first input; number enter the code above)

     

     win10--------------------------------------------------------------------

  3. 系统变量→新建 CLASSPATH 变量

    变量值填写   .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar(注意最前面有一点)

    系统变量配置完毕

  4. 检验是否配置成功 运行cmd 输入 java -version (java 和 -version 之间有空格)

    若如图所示 显示版本信息 则说明安装和配置成功。

 

Guess you like

Origin blog.csdn.net/qq493820798/article/details/90726380