Environment variables for configuring JDK and SDK in Android

Source: Internet
Author: User

Configuration of the JDK environment variable:

Right-click computer or My Computer , select Properties -- advanced or Advanced system settings (for example, Figure 1below)-- environment variable "(for example, Figure 2below), for example:

Figure 1

Figure 2

Stand-alone "environment variables". The interface appears for example with 3.

Figure 3

Then, at System variables , select new (the red Mark ). Appear for example with 4 interface,

Figure 4

The following is a formal configuration section:

(1) Enter "java_home" at " variable name " and enter the JDK installation folder in the " Variable Value " (The JRE folder under the installation JDK folder, Bin folder and Lib folder, etc.).

(2) Create a new variable name, classpath, whose variable value is:

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

(3) Double-click the Path variable to join at the top or last:

%java_home%\bin;

Test whether the JDK was successfully installed:

Select " start " and " execute ", or press the combo key "Win + R" directly and enter "cmd" in the Command box. Enter the DOS interface (black box) and type "java-version" at the command line

A successful installation of the JDK appears as a warning message.


Configuration of the SDK environment variables:

(1) " new " in " system variable ", variable named "sdk_home", " Variable Value " Enter SDK installation folder (Tools folder under SDK installation folder , Extras folder and Platfroms folder, etc.);

(2) Add the value of the Path variable:

%sdk_home%\tools;

Test SDK installed successfully:

Enter "android-h" in the DOS interface command line,

A message appears indicating that the SDK was successfully installed.



Environment variables for configuring JDK and SDK in Android

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.