Download and install the JDK

Source: Internet
Author: User

In the current installation of a lot of tools to use the premise is to install the JDK, so in this case simply write down the JDK installation process, easy to forget when the review, hope can also help others.

First of all, people are also a small white, the JDK of the various understanding and use is not very clear, directly on the installation steps.


First, download the JDK address

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

After entering the address, select the JDK package that matches your computer to download it. Mine is the Win7 64-bit system.


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/79/wKioL1dCu-rAaKF6AAEHFVowwmQ312.png "title=" Picture 1.png "alt=" Wkiol1dcu-raakf6aaehfvowwmq312.png "/>


Ii. Installation of JDK

1. Find the downloaded JDK location and double-click the JDK application

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/79/wKioL1dCvILAt7sTAACTQji6bOQ748.png "title=" Picture 2.png "alt=" Wkiol1dcvilat7staactqji6boq748.png "/>


3. Click "Next"

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/7B/wKiom1dCvAzRNYOtAAC41KT04xE809.png "title=" Picture 3.png "alt=" Wkiom1dcvazrnyotaac41kt04xe809.png "/>


4, you can modify the installation path. I will modify the installation path to the D drive in the Java directory, then click "Next"

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/7B/wKiom1dCvCqw8i9vAADnaCPf6qM921.png "title=" Picture 4.png "alt=" Wkiom1dcvcqw8i9vaadnacpf6qm921.png "/>


650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/7B/wKiom1dCvMOzq9xYAAD03HPSJZM770.png "title=" Picture 5.png "alt=" Wkiom1dcvmozq9xyaad03hpsjzm770.png "/>


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/80/7B/wKiom1dCvQryGRYfAADYYs13Dzk782.png "title=" Picture 6.png "alt=" Wkiom1dcvqrygryfaadyys13dzk782.png "/>


5, Modify the installation directory again, notice must be installed with jdk Span style= "font-family: ' The song Body '; > The same directory java but not fit into jdk folder, because Span style= "font-family: ' Times New Roman ';" >JDK JAVA  java folder ", click" Next "

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/80/7B/wKiom1dCvZWyS4-6AAD2y0qQq9I740.png "style=" float: none; "title=" Image 7.png "alt=" Wkiom1dcvzwys4-6aad2y0qqq9i740.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/79/wKioL1dCvofwRgUmAAGFjuEtefg947.png "style=" float: none; "title=" Image 8.png "alt=" Wkiol1dcvofwrgumaagfjuetefg947.png "/>


6. Click "Close" to complete the installation .


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/80/7A/wKioL1dCvtyDvvAwAACz0DUeFkw969.png "title=" Picture 9.png "alt=" Wkiol1dcvtydvvawaacz0duefkw969.png "/>


Iii. Configuring the JDK environment

1. Right-click the computer icon on the desktop, click "Properties" in the drop-down menu that appears, click "Advanced system Settings"---"Advanced"---"Environment variables"


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/80/7A/wKioL1dCv_yQIQMWAAFl5MDn94k601.png "style=" float: none; "title=" Image 10.png "alt=" Wkiol1dcv_yqiqmwaafl5mdn94k601.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/7A/wKioL1dCv_2Rt6JmAAEJFklsm_4723.png "style=" float: none; "title=" Image 11.png "alt=" Wkiol1dcv_2rt6jmaaejfklsm_4723.png "/>

2. Under System variables, click "New" to create a new environment variable

A, new Java_home

Variable name: java_home

Variable value: Fill in the JDK installation path (I just installed the path is D:\java\jdk1.8.0_60)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/80/7A/wKioL1dCwQXgpSepAAEyfErMClE054.png "title=" Picture 12.png "alt=" Wkiol1dcwqxgpsepaaeyfermcle054.png "/>


B, New Classpath

Variable name: CLASSPATH

Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; (This is a fixed value, note that there is a point at the beginning, the end is a semicolon, do not miss)

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/80/7C/wKiom1dCwkzBSmrrAAEPNr0E7-s830.png "title=" Picture 13.png "alt=" Wkiom1dcwkzbsmrraaepnr0e7-s830.png "/>

C, edit the path variable (usually the variable is taken from the system variable, so just edit it)

Variable name: Path

Variable value:%java_home%\bin;%java_home%\jre\bin; (Add this fixed value after the value of the original variable, note the end of the semicolon do not miss)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/80/7C/wKiom1dCw2fgMrCHAACHo7LcSn8151.png "title=" Picture 14.png "alt=" Wkiom1dcw2fgmrchaacho7lcsn8151.png "/>


Iv. Detection of JDK installation success

Enter Java-version carriage return in the DOS command line interface of Windows, which is successful when the JDK version appears

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/80/7A/wKioL1dCxcrSp5DsAACcz-foLso424.png "title=" wxid_ Tpd4skf3iag922_1463993730194_27.png "alt=" Wkiol1dcxcrsp5dsaaccz-folso424.png "/>



Note:

when multiple users are used in the system, the environment variable is set in individual user variables, which means that only the user is available (set path variable value, the system variable is allowed to copy the path value First, and then add the variable value to be set, can be used %PATH% equivalent to take the system variable PATH value ), setting the environment variable in the system variable means that all users are available.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/80/7C/wKiom1dCxVLisUwXAAHXK19wlsg044.png "title=" Picture 15.png "alt=" Wkiom1dcxvlisuwxaahxk19wlsg044.png "/>


This article is from the "Small White blog" blog, please be sure to keep this source http://janice7.blog.51cto.com/9906580/1782189

Download and install the JDK

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.