Download, installation, and deployment of the "Java" jdk

Source: Internet
Author: User
Tags java se

This is very simple for a lot of people, but write it, hoping to help those who still need it,

I remember the first time I configured the JDK for a long time, and now every time I need to reconfigure the JDK to see the corresponding article to recall, so as to complete

JDK configuration is more and more gradually familiar.

For the JDK download, Java Beginners may have doubts, after all these years Java is constantly evolving

According to some textbooks that were based on the old textbook of JDK1.5 and even JDK1.6, there was no place for the download,

In Java's official website looked for a long time can only find JDK1.7 version, in fact JDK1.7 is completely no problem, backwards compatible with all JDK

As for the official website recommended JDK1.8 do not download, the author once in an XP system to get a JDK1.8, found that there is no use ...


First, the JDK download

1, first open the JDK's official website (click the Open link), find the JDK in Java SE 7u71/72, select download



2. Then, if you select Accept License agreement, select the appropriate JDK download according to your operating system version



3, take windows as an example, after downloading to get a executable EXE file, directly click to run



Second, the JDK download

1, click Next, if your download JDK has been updated, it does not matter, similar



2, "Install to" that section can change the installation of the JDK path, note that the "Development tools", "Source code", "Public JRE" the installation path of the three parts are changed, this is not like MySQL, change the bottom of the most can be changed



3, click Next to automate the installation of the JDK, and then install the JRE, if your previous JDK changes, it is best to change the JRE here to the same root directory as the JDK, for example, my JDK is installed to D:\JAVA\JDK, your JRE here is also best installed to D:\java\jre , so that the management of your files is convenient



4. Click Next to complete the entire JDK installation


Iii. deployment of the JDK

1. Right click on "Computer", "Properties", then "Advanced System Settings" tab, then select "Environment Variables", XP system is "My Computer" and "Properties", you can directly select the "Advanced" tab, and then select "Environment variables"


The above is the WIN7 system, the following is the XP system



2. In the "Environment variable" select "New (W) ..."



3. Create a new three system variables in the popup window after each:

Java_home
E:\Program Files\java\jdk1.7.0_71 (This is the JDK installation path you chose when you just installed it)


CLASSPATH
.; %java_home%\lib;%java_home%\lib\tools.jar;


Path
%java_home%\bin;%java_home%\jre\bin; (If your JRE chooses a different path, the first semicolon should be: Path of the \jre\bin)


For example, to create a new CLASSPATH environment variable, click "OK", then create another



4, after the fix, click "OK" in each interface, then open "command Prompt", or in the Run window, enter "CMD", open the DOS interface, enter Java and javac can output a bunch of debugging information to prove that your machine already has Java environment, JDK download, Installation and deployment are formally completed.




Download, installation, and deployment of the "Java" 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.