Graphic tutorial on JDK download, installation and deployment

Although this is very simple for many people, I still want to write it. I hope it can help the latecomers who still need it,

I remember that I configured the JDK for a long time when I first configured it, and now every time I need to reconfigure the JDK myself, I have to read the corresponding article to recall it, so that I can complete it

JDK configuration is more and more familiar.

Java beginners may have doubts about the download of JDK. After all, Java has been developing all these years

Follow some steps to jdk1 5 is a blueprint for old-fashioned textbooks and even jdk1 There is no place to download the instructions on the 6-based textbook,

I have searched the official website of Java for a long time and can only find jdk1 7, actually jdk1 7 has no problem at all. It is downward compatible with all jdks

As for the jdk1 recommended on the official website 8 don't download indiscriminately. The author once made a jdk1 under an XP system 8. It's found that it doesn't work at all

1、 JDK Download

1. First, open the official website of JDK (click the open link), find the JDK in Java se 7u71 / 72, and select download

2. Then, as shown in the figure below, select accept license agreement, and select the corresponding JDK to download according to your own operating system version

3. Take windows as an example. After downloading, you can get a runnable EXE file and click run directly

2、 JDK Download

1. Click next. If your downloaded JDK has been updated, it doesn't matter. It's similar

2. The installation path of JDK can be changed in the "install to" part. Pay attention to confirm whether the installation paths of "development tool", "source code" and "public JRE" have been changed. Unlike mysql, it can be changed by changing the bottom item

3. Click next to automatically complete the installation of JDK and then install JRE. If your previous JDK is changed, you'd better change the JRE here to the same root directory as the JDK. For example, my JDK is installed to D: \ Java \ JDK, and your JRE is also installed to D: \ Java \ JRE, so as to facilitate your file management

4. Click next to complete the installation of the entire JDK

3、 JDK deployment

1. Right click computer - > properties, then select the Advanced tab of advanced system settings, and then select environment variables. XP system is my computer - > properties, you can directly select the Advanced tab, and then select environment variables

The above is a screenshot of win7 system, and the following is a screenshot of XP system

2. New in environment variable select“

3. Then create three system variables in the pop-up window:

JAVA_ HOME E:\Program Files\Java\jdk1. 7.0_ 71 (this is the JDK installation path you selected during installation just now)

CLASSPATH .;% JAVA_ HOME%\lib;% JAVA_ HOME%\lib\tools. jar;

Path %JAVA_ HOME%\bin;% JAVA_ HOME%\jre\bin; (if your JRE chooses another path, the first semicolon should be followed by the path of.. \ JRE \ bin)

For example, the following figure is to create an environment variable of classpath, click OK, and then create another environment variable

4. After that, click "OK" on each interface, and then open the "command prompt", or enter "CMD" in the operation window to open the DOS interface. Entering Java and javac in it can output a pile of debugging information, which proves that there is a java operation environment on your machine, and the download, installation and deployment of JDK are officially completed.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>