41
Chapter 2: Prepping Your Development Headquarters
Getting the Total Eclipse
Now that you have the SDK, you need an integrated development environ- ment IDE to use it. It’s time to download Eclipse
Choosing the right Eclipse version
Downloading the correct version of Eclipse is very important. At this writ- ing, Android doesn’t support Eclipse Helios version 3.6. Check the Android
System Requirements page at http:developer.android.comsdk requirements.html. If you’re still unsure, download Eclipse Galileo ver-
sion 3.5. When you download the file, you’ll probably need to find the Older Versions link on the download page and select the latest Galileo version.
To download the correct version, navigate to the Eclipse downloads page www.eclipse.orgdownloads; select the Older Versions link; and then
select Eclipse IDE for Java Developers. Eclipse IDE for JAVA EE Developers works as well.
Installing Eclipse
Eclipse is a self-contained executable file; after you unzip it, the program is installed. Even though you could stop here, it’s best to pin a shortcut to your
Start menu so that Eclipse is easy to find when you need it.
To install Eclipse, you need to extract the contents of the Eclipse .zip file to the location of your choice. For this example, I’ll be using C:\Program
Files\Eclipse.
To install Eclipse, follow these steps:
1. Double-click the shortcut that you just created to run Eclipse.
If you’re running a recent version of Windows, the first time you run Eclipse, a Security Warning dialog box may appear, as shown in Figure
2-16. This dialog box tells you that the publisher has not been verified and asks whether you still want to run the software. Clear the Always
Ask Before Opening This File check box, and click the Run button.
42
Part I: The Nuts and Bolts of Android
Figure 2-16:
The Windows
security warning.
2. Set your workspace.
When Eclipse starts, the first thing you see is the Workspace Launcher dialog box, as shown in Figure 2-17. Here, you can modify your work-
space if you want, but for this book, I’m sticking with the default: c:\users\username\workspace
Leave the Use This as the Default and Do Not Ask Again check box dese- lected, and click the OK button.
Figure 2-17:
Set your workspace.
If you plan to develop multiple applications, I recommend using a sepa- rate workspace for each project. If you store multiple projects in one
workspace, it gets difficult to keep things organized, and it’s easy to change a similarly named file in a different project. Keeping projects in
their own workspaces makes it easier to find the project when you have to go back to it to fix bugs.
When Eclipse finishes loading, you see the Eclipse welcome screen, shown in Figure 2-18.