JDK installation and configuration tutorial

Source: Internet
Author: User
JDK installation and configuration tutorial
    • |
    • Browsing:66984
    • |
    • Update:
136 133 Full text reading Step-by-Step reading Procedure
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

As an environment for Java Development, JDK must be installed on a computer, whether it is for Java Development students or Android Developers. Next we will teach you how to install JDK.

Tools/Raw Materials
    • One Computer

    • JDK installation package

I. JDK Installation
  1. first, download the JDK installation package from the official website of Oracle and select the correct version based on the operating system of your computer. People who do not know can search Baidu quickly. Shows the download package.

  2. double-click the JDK installation package with the left mouse button. The installation interface shown in the figure is displayed.

  3. In fact, the above step is to load the configuration and prepare for JDK installation. The interface shown in later appears.

  4. we select" I accept the terms in this License Agreement ", the" Next "button will be automatically activated, and then click this button, the custom installation interface is displayed.

  5. You can select different installation paths and content as needed. Here we keep the default option. Click "Next" to display the "installing" interface.

  6. when the progress bar reaches 100%, the" custom installation "page appears, at this time, you must install the language support plug-in. Click Next.

  7. the browser association option is displayed, which can be selected as needed, after installation, you can change this option in the control panel.

  8.  

    Click "Next" to display the installation completion prompt. Of course, this step should be noted that 360 security guard may prompt the trojan firewall.Program", Otherwise the JDK installation may be incomplete.

Ii. JDK environment variable configuration
  1. the first step is completed, but the JDK environment is installed. In this case, you must configure a series of environment variables to use the JDK environment for Java development. The configuration environment variables include java_home, path, and classpath.

  2. right-click my computer ", choose "properties"> "advanced"> "environment variables"> "system variables"> "new ".

  3. write" java_home "in the" variable name "input box, and write" C: \ Program Files \ Java \ jdk1.6.0 "(based on the installation path), and then click" OK ". The java_home configuration is complete.

  4. next, configure" classpath. Select "system variables" to check whether the classpath project exists. If not, click "new". If yes, select the classpath option and click "edit, enter "classpath" in "variable name" and "C: \ Program Files \ Java \ jdk1.6.0 \ JRE \ Lib "(based on the installation path ).

  5. now you can configure" path. Similarly, when "classpath" is set, set "path" in the "variable name" input box and "C: \ Program Files \ Java \ jdk1.6.0 \ bin "(based on the installation path ).

  6. the JDK environment variable has been configured. You can open the Command Prompt window and enter the command" Java-version ", check the Java version to check whether the installation is successful. Click Start and then run ".

  7. the displayed input page appears. Enter" cmd "and press" enter.

  8. at this time, the" command prompt "window is displayed. Enter "Java-version" at this time. Note that there is a space between Java and-version and press "enter.

  9.  

    All JDK version information is displayed. On the other hand, JDK has been installed and configured. You can start Java development.

Notes
    • The installation path has a lot to do with environment configuration. It is recommended that you set the installation path to relatively simple.

 

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.