Install Eclipse Juno and the Android SDK on Ubuntu

Eclipse Juno with Android on UbuntuEclipse Juno and the latest Android SDK provide better platform integration and a bunch of new features that make Android development much smoother and more fun. The process of installing Juno and the Android SDK on [X]ubuntu is similar to installing the previous version of Eclipse and Android (steps and illustrations here) with a few small tweaks.

Update: A few people have had problems accessing installed packages after running Eclipse as root. Don’t run Eclipse as root when you’re installing packages.¬†You shouldn’t run programs as root under most circumstances, really.

This is an abbreviated version of the previous guide, geared toward installing Eclipse Juno and the Android SDK r20 instead of Eclipse Indigo and Android r18. It assumes you have the Java SDK installed already. If you don’t have Java yet, consult the previous guide first.

Steps: Installing Eclipse Juno and the Android SDK

  1. Download Eclipse Juno for Mobile Developers(torrent recommended).
  2. Download the Android SDK.
  3. Unzip Eclipse and the Android SDK into your destination directory (here, /opt).
  4. Change directory ownership to your user/group.
  5. Install desired Android SDK components.
  6. Point Eclipse to your Android SDK.

Pictures of the process and some additional details are provided in the tutorial for installing Eclipse Indigo on Ubuntu, which follows nearly identical steps.

Installing Eclipse Juno on Ubuntu

Once you have selected and downloaded the Eclipse .tgz for your architecture, move it into your installation directory and untar it (substituting <eclipse.tgz> for the Eclipse file you downloaded and <USER:USER> for your username):

Installing the Android SDK on Ubuntu

Download the Android SDK for Linux, move it to the installation directory and untar it. Once it’s finished untarring, run the android executable and select the packages you want to install. After selecting, click install and “Accept All.”

The Android SDK r20 includes optional platform tools from Motorola and HTC. I entered my MotoDev information so I could develop for my Droid 3, but I skipped on HTC.

Integrating the Android SDK with Eclipse

Once the Android SDK and Eclipse are installed and the directories are properly chowned, switch from root back to your regular username and run Eclipse. Then go to Help>Install New Software and click “Add” (Clarification: Running eclipse and installing software as root may cause problems later, as mentioned here). Name the site “Android” (or something you’ll remember) and provide the following URL:¬† Select “Developer Tools” (and “NDK Plugins” if you’re doing NDK work) and proceed with the installation.

When the components have all installed, restart Eclipse, go to Windows>Preferences, and click Android. Enter the correct location of your SDK (/opt/android-sdk-linux for me) and click “Apply.” Test your installation with “Hello World” or one of the provided Android sample apps.


For convenience, I added the following line to the bottom my .profile:

It adds all of the tools (adb, android, etc.) to my PATH, so I can invoke them from anywhere without needing to type the full path to the executable. I also

Incoming search terms:

9 thoughts on “Install Eclipse Juno and the Android SDK on Ubuntu

  1. Thanks for this great article.In fact I must say “articles” because the one on Eclipse Indigo is equally very helpful to me!

  2. Pingback: Install Eclipse Juno and the Android SDK on Ubuntu » MUHAMMAD YUSRO

  3. Extremely helpful guide! Thanks very much for it. By the way, is it possible to have a physical app button to refer to on my Linux Desktop?

  4. Excellent article, easy to follow even for a Linux noob like myself! Thanks very much for taking the time and effort to provide this procedure.

  5. Thanks much, this is just clear and effective, somehow I hadn’t been able for make it work successfully in two previous attempts. Kudos!