Build an android development environment in two steps (1)

Source: Internet
Author: User


If you do not have an Android phone, you can set up an android development environment to experience it first in the android simulator.

If you want to develop an android application, it is necessary to build an android development environment.

Step 1: Build a Java environment.

Because android can only run in a Java environment, you must first build a Java environment.

1. Download JDK

To obtain the latest JDK version, go to Sun's official website to download the latest JDK version:

Click Open Link

Download the latest Java SE Development Kit (JDK), and select the corresponding operating system and language.

It should be

Java SE Development Kit (JDK) version 1.7

Note: it is not enough to install only JRE.

The difference between the two is not described in detail here. To put it simply, JDK has a JRE.

2 JDK Installation

The JDK installer on Windows is an EXE executable program. You can directly install it. During the installation process, you can select the installation path and installed components.

If you do not have special requirements, select the default settings. The default installation path of the program is in the c: \ Program Files \ Java directory.

3. JDK Configuration

After JDK is installed, you can use it without setting it. However, for ease of use, simple configuration is generally required. Because the compilation and running tools provided by JDK are based on command line, you need to set the following DOs, add the executable files in the bin directory under the JDK installation directory to the DOS External commands, so that you can directly use the EXE program under the bin directory in any path.

The configured parameter is the path environment variable in the operating system. This variable is used by the system to find the path of the executable program.

Step 1: My computer
> Right-click Properties> advanced> environment variable


2. Double-click the path and add the absolute path of the bin directory in the JDK installation path to the value of the PATH variable. Separate the half-width semicolon with the existing path. For example, the bin path under the JDK installation path is D: \ Program.
Files \ Java \ jre7 \ bin, add the path to the path value. Note the extra points (in English)


After the configuration is complete, you can use the following format to test whether the configuration is successful:

1. Open a command prompt

2. In the "command prompt" window, enter javac and press enter to execute

If the output content is instructions, the configuration is successful. If the output content is "'javac' not an internal or external command,

It is not an executable program or a batch processing file .", The configuration is incorrect. You need to reconfigure it.






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.