Configure the android development environment in win7

Source: Internet
Author: User
Tags windows x64

1. Install JDK

Download the latest JDK version as follows:

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

Here I downloaded: Java SE Development Kit 6u24 for Windows x64, multi-language, that is, this file: jdk-6u24-windows-x64.exe

Download and install. After windows is installed, you need to set three environment variables.

   
Java_home Specifies the JDK installation path, which is the path C:/program files/Java/jdk1.6.0 _ 24 during installation. This path contains Lib, bin, JRE, and other folders (it is best to set this variable, this variable is required for running tomcat, eclipse, and ant in the future)
Path

Path allows the system to recognize Java commands in any path. It is set:

% Java_home %/bin; % java_home %/JRE/bin

Classpath

Classpath is the class or lib path of the Java load class. Only the class in classpath can be identified by the Java command and set:

.; % Java_home %/LIB; % java_home %/lib/tools. Jar

(Add. to indicate the current path)
% Java_home % refers to the previously specified java_home.

After the preceding environment variables are set, run CMD and run the following command in the Command window to view information similar to the following:

Of course, you can also use Java-fullversion under the command line to view the details of the current version. The returned information is similar to the following:

Java full version "1.6.0 _ 24-b07"

 

Then we can write a super simple Java program: helloworld. Java file content is as follows:

Public class helloworld
{
Public static void main (string ARGs [])
{
System. Out. println ("helloworld! ");
}
}

In sequence: javac helloworld. Java

Java helloworld

To test whether it can run normally.

See:

Build a Java environment
Http://blog.csdn.net/ghj1976/archive/2010/04/29/5543428.aspx

 

2. Download and install eclipse

: Http://www.eclipse.org/downloads/

Here I download: 64-bit eclipse Helios (3.6.2) Eclipse IDE for Java developers

That is: eclipse-java-helios-SR2-win32-x86_64.zip this file

After downloading and decompressing the package, you can use it.

Select a workspace for normal use.

If you need to use eclipse to develop code for other programs, such as PHP, you can add the software supported by eclipse as follows:

In the eclipse Development Environment menu help --> install new software open interface, select Helios-http://download.eclipse.org/releases/helios/ this site (if you are using 3.6 ),

Then the following list will be refreshed (it may take a while ...), then, select the php development tools (PDT) SDK feature under the programming languages classification, and click Next next.

You can also set the JDK version in eclipse,

In our project, right-click Properties> Java compiler and set the level of compiler compliance to the version we need.

Note that eclipse does not have its own JDK, and it only needs JRE to run (javac is not required), because it comes with a compiler (compile package exists in the plugin directory ).

At runtime, eclipse starts startup. Jar by using the Java command (Windows or Linux) added to the environment during JRE installation. However, if you only use JRE, because there is no source code, eclipse cannot generate type comments in the library based on the source code.

 

3. Set eclipse and install Android development tools

Open the eclipse menu help ---> install new software
Select Add
Input name: ADT
Location: https://dl-ssl.google.com/Android/eclipse/

Press OK

Check all the items and install them. Always press next, accept the protocol, and then install it automatically.

 

4. Download the android SDK

Download Android SDK select android-sdk_r10-windows.zip
You can download it from the following address in China:
Http://code.google.com/p/androidforchinadeveloper/downloads/list
Http://www.icewalkers.com/Linux/Software/536930/Android-SDK.html

 

 

5. Set the android SDK path
5.1 After eclipse is restarted, choose [windows] ----- [preference] --- [Android]
Click Browse and select the downloaded Android SDK path (decompress required)
Click Apply

5.2. In WINDOW> Android SDK and AVD manager, select the android package to be installed. In short, it is a full selection.
> Available packages:
> Android Repository:
+ Android SDK tools, revision 9
+ Android SDK platform-tools, revision 2
[Install selected]
On avaliable packages, select the development kit to be installed (based on your own needs, do not need to install all). online download is slow.
This completes the android development environment.

 

 

References:

Install the Android 2.2 Development Environment in ubuntu10.10
Http://www.cnblogs.com/ghj1976/archive/2011/04/02/2003847.html

Related Article

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.