Archived: Downloading and Installing Apache Ant 1.8

This section describes how to download and install Apache Ant 1.8.3 on a Windows system. Apache Ant is a popular Java application build tool that allows you to automate the Java application build process.

To develop Android applications in Java language, you also need to install Apache Ant, which is a popular Java application build tool that allows you to automate the Java application build process.

Here is what I did to download and install Apache Ant 1.8.3 on my Windows system.

1. Go to Apache Ant home page: http://ant.apache.org/ and click "Download / Binary Distributions" in the menu.

2. Click the link "apache-ant-1.8.3-bin.zip" next to ".zip archive:" in the "Current Release of Ant" section to start download.

3. Save the download file to C:\download\apache-ant-1.8.3-bin.zip and wait for the download to finish.

4. Unzip C:\download\apache-ant-1.8.3-bin.zip to folder C:\local\apache-ant-1.8.3.

5. Set JAVA_HOME as a system environment variable to point to the JDK 1.7 home folder:

set JAVA_HOME=C:\Progra~1\Java\jdk1.7.0_03

To verify the installation, open a command window to try the "ant" command. If you are getting the following output, your installation is done correctly:

C:\herong>\local\apache-ant-1.8.3\bin\ant -version
Apache Ant(TM) version 1.8.3 compiled on February 26 2012

Table of Contents

 About This Book

 Installing JDK 1.8 on Windows System

 Installation of Android SDK R24 and Emulator

 Installing Apache Ant 1.9 on Windows System

 Developing First Android Application - HelloAndroid

 Android Application Package (APK) Files

 Android Debug Bridge (adb) Tool

 Android File Systems

 AboutAndroid - Application to Retrieve System Information

 android.app.Activity Class and Activity Lifecycle

 View Objects and Layout Resource Files

 Using "adb logcat" Command for Debugging

 Build Process and Package File Content

 Building Your Own Web Browser

 Android Command Line Shell

 Samsung Galaxy Tab 3 Mini Tablet

 USB Debugging Applications on Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

Archived Tutorials

 Archived: Downloading and Installing JDK 1.7

 Archived: Downloading and Installing Android SDK R17

 Archived: Running Android SDK Manager

 Archived: Installing Android Platform 4.0.3 and Libraries

 Archived: Verifying Android Platform Installation

 Archived: Creating Android Virtual Device (AVD)

 Archived: Launching Android Emulator in AVD Manager

 Archived: Android Emulator Built-in Applications

 Archived: Android Emulator Built-in Web Browser

Archived: Downloading and Installing Apache Ant 1.8

 Archived: "HelloAndroid" - First Android Project

 Archived: Building the Debug Binary Package

 Archived: Installing the Debug Binary Package

 Archived: Running the Debug Binary Package

 Archived: Rebuild the Debug Binary Package

 Archived: Redefine Text in Resource Files

 Archived: Installing Android PDF Viewer APK File

 Archived: Copy PDF File to Android Emulator's File System

 Archived: Installing Adobe Reader APK File

 Archived: "adb shell" - Remote Shell Interface

 Archived: "adb push" and "adb pull" Commands

 References

 Full Version in PDF/EPUB