Installation and configuration of the JDK

Source: Internet
Author: User

Installation and configuration of the JDK

The JDK (Java Development Kit), as the name implies, is the Java language Software Development Kit (SDK).

Android is open using the Java language, so installing the JDK is the basis for Android development and must be installed.

JDK Download

Official address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Other addresses download the installation package can also, does not matter.

Download the corresponding version according to your needs after clicking

JDK Installation
  1. Double-click the downloaded EXE installation package.

  2. Next, select the installation path

  3. Next, install

  4. After the JDK is loaded, a dialog box prompts you to install the JRE (Java runtime Environment,java Environment)

    This is actually installed in the JDK, the default is to install a JRE, so I personally do not install the JRE, if you are willing to install, you can continue to select an installation path, to install, I here directly to the upper right corner of the fork off.

  5. So far, the JDK installation is complete, click Close to

View JDK version

Locate the JDK's installation directory, go to the bin directory, place your mouse in a blank position, press and hold "Shift", then right -click here to Open the Command Window and enter the command window.

java -version

You can see the JDK version, which indicates that your JDK has been installed successfully.

Configuring the JDK Environment

JDK is not finished installation is completely easy to use, but if not configured environment, we only in the installation directory in the bin directory to use, because all the JDK in this directory, if we do not configure, development is particularly troublesome.

Verify that the development environment is not configured below

Keyboard press and hold the "Windows" key and then "R" key, open " run ", or open " run " in the Start menu, enter "cmd"

Click "OK"to go to the command prompt window, or skip the previous step and navigate directly to "command Prompt" in the Start menu.

At the command line, enter

java -version

, no environment is configured and cannot be used under other paths

Start configuring the development environment below

    • Step One

Right-click " My Computer " and " Properties ", click " Advanced system Settings "

    • Step Two

      Click " Environment Variables " after entering " system settings "

    • Step Three

      Create a new variable named Java_home, which is the path to the installation JDK, starting at the root directory,

    • Step Four

      Locate the Path variable in the system variable, edit
      Precede the variable name with the JDK's installation directory, then replace the JDK's root directory with%java_home%, and don't forget to add ";" in the back,

    • Step Five

      Click OK to save

Verify that the configuration is successful

Repeat the verification steps above and discover that the SDK is not available under the bin in the JDK installation directory, and that this configuration is successful!

Description

Benefits of configuring environment variables to use%java_home%

The good thing is that when we update the JDK version or replace the JDK's installation directory, we don't have to change the path variable, just change the java_home variable, so you can avoid changing the path variable to a problem. Cause other applications of the system to not work properly.
But I generally rarely update the JDK, so also rarely to change java_home, how to configure to see the individual bar, as long as the configuration of the path is right on the line.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced. All articles, any technical point, whether original or reproduced, are used in the program or demo test before publishing! Bo Master qq:4878802.

Installation and configuration of 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.