Android1.6 Development Environment Configuration

Source: Internet
Author: User

There was nothing to do recently. I suddenly wanted to play with Google's Android development.

First, you need to know which development software is required for Android, JDK 1.5.0 + Tomcat + myeclipse 6.0/eclipse3.4 + Android SDK + plugin ADT 0.9.1.

:

(1) myeclipse 6.0:Http://www.eclipseplugincentral.com/displayarticle692.html

(2) Tomcat 6.x:Http://tomcat.apache.org/download-60.cgi

(3) JDK 1.5:Http://java.sun.com/javase/downloads/index.jsp

(4) eclipse3.4:Http://www.eclipse.org/downloads/

(5) Android SDK 1.5:Http://developer.android.com/intl/zh-CN/sdk/1.5_r2/index.html

(6) ADT 0.9.1:Http://dl-ssl.google.com/android/ADT-0.9.1.zip

After all the development software is ready, the next step is to configure the environment. We all know that the development environment configuration of myeclipse is still a little troublesome.

1. Configure JDK

Right-click my computer and choose Properties> advanced> environment variables.

1) Create"Java_home"Variable, variable value: D: \ Program Files \ Java \ jdk1.6 (based on your own installation path)

2) create"Classpath"Variable, variable value:.; % java_home % \ Lib \ tools. Jar

3)Path"Variable (New is not needed) add variable value: % java_home % \ bin; % java_home % \ JRE \ bin (note that variable values are separated)

4) "start" --> "run" --> Enter cmd and then "javac" --> "enter". If the JDK version is normal, the configuration is successful!

Analysis of supplemental environment variables:

Java_home: JDK installation path

Classpath: the class path loaded by Java. Only the Java commands of the class in classpath can be identified. A "." is added before the path to indicate the current path.

Path: The system can recognize Java and javac commands in any path.

2. Configure Tomcat

Right-click "my computer" and choose "properties"> "advanced"> "environment variable (n )".

1) Create a system variable"Catalina_home"Value: D: \ Program Files \ tomcat5

2) in the system variable"Classpath% Catalina_home % \ common \ Lib;

3) in the system variable"Path"% Java_home % \ bin;" is followed by the following content: % catalina_home % \ bin;

4) Go to the bin in the Tomcat directory, double-click STARTUP. bat, and enter "localhost: 8080" in the browser to test whether the port is successful. The port can be modified.

3. Configure Android SDK 1.5
1) Create a New System variable and fill in "variable name"Sdk_home', Add D: \ Program Files \ android-sdk-windows-1.5_r1 in variable value

2) in the system variable"Path"Variable, followed by" variable value "; % sdk_home % \ tools, note the semicolon above

3) "start" --> "run" --> Enter cmd and enter Android-help to view the help information, indicating that the configuration is successful.

4. Install ADT in myelicipe

1) Open myelicipe, help-> Software Update-> Find and install...-> select search for new features to install-> click Next

2) Click new local site... -> Select the folder where the ADT is located, select ADT-0.9.0 on the left-> click Finish

3) after installing the ADT plug-in, restart myelicipe.

4) Open File-> New to check whether the android project option is available. Do not worry if it does not appear. Click the "other..." option to check whether the android option exists. If yes, the installation is successful.

5. Associate Android SDK with myelicipe

1) in the "Windows-> Preferences" menu, open the preferences dialog box and click Android. In the android reference on the right, Click Browse... Button, find D: \ Program Files \ android-sdk-windows-1.5_r1, and click OK ".

 

The environment has been configured almost now. The rest of the work is to find a simple example and try it later ~~~

 

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.