Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2: Setting up your Development E... > Setting Up Your Environment

Setting Up Your Environment

To build Android applications, you need to establish a development environment. In this section, you walk through downloading JDK 6, the Eclipse IDE, the Android SDK (tools and packages), and ADT. You also configure Eclipse to build Android applications. Google provides a page to describe the installation process (http://developer.android.com/sdk/installing.html)but leaves out some crucial steps, as you will see.

Downloading JDK6

The first thing you need is the Java SE Development Kit. The Android SDK requires JDK 5 or higher; we developed the examples using JDK 6. For Windows, download JDK 6 from the Oracle web site (http://www.oracle.com/technetwork/java/javase/downloads/index.html) and install it. You only need the JDK, not the bundles. For Mac OS X, download the JDK from the Apple web site (http://developer.apple.com/java/download/), select the appropriate file for your particular version of Mac OS, and install it. You need to register for free as an Apple developer to get the JDK, and once at the Downloads page, you need to click the Java link at right. To install the JDK for Linux, open a Terminal window and try the following:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint