Updating Eclipse from Galileo to Indigo on Ubuntu 10.04 with Android SDK

Hello folks,
you probably know by now that I am working currently with Android using Ubuntu. On my laptop I still run Ubuntu 10.04 LTS šŸ˜€ and had problem setting up the new Eclipse version Indigo in combination with the current Android SDK r17.
Now I found a way that is pretty simple if you also wanna update your Eclipse version.

Let’s start:
If you have tried updating Eclipse and got error messages saying that dependencies cannot be resolved you are right here. I messed around a lot with my Eclipse installation, with manual download, and execute Eclipse as sudo and so on and so forth … Forget about all that.

1) install Eclipse
Yon won’t believe me but start with a normal installation of Eclipse from your distributions repositories:

sudo apt-get install eclipse

In my case that installed Eclipse Galileo, fine. Quite old but works. I started it up and it runs.

2) download current Eclipse
Now continue with downloading the current version of Eclipse from their website:

http://www.eclipse.org/downloads/

I chose Eclipse Classic (version 3.7.2 was the most recent) and stored it in my Download folder. After the download has finished, extract the tar file and you get a folder “eclipse”.

3) kill old Eclipse installation
So now make sure you have eclipse closed. Then open a terminal and execute the following command (please make sure in advanced, whether your distribution has stored Eclipse under this location!)

sudo rm -Rf /usr/lib/eclipse

4) replace with new version
Now you can move the just downloaded version to that place:

sudo mv ~/Download/eclipse /usr/lib/eclipse

5) final adjustments
You are nearly done, just open /usr/bin/eclipse with an editor and replace “Galileo” with “Indigo” in all locations you see it (if Galileo was your old version)

sudo gedit /usr/bin/eclipse

Save the file and fire up eclipse again, et voila: we have now Indigo running šŸ˜€

6) install ADT Plugin for Android development
Previously I had much problems with this too, because of missing dependencies. Executing as sudo helped but was inconvenient. So now it is much easier. You have Eclipse Indigo already running? Ok, then go to “Help > Install New Software
In the input filed on the top insert

http://dl-ssl.google.com/android/eclipse/

to get the latest version of the ADT Plugin. Wait until all data are fetched, then select “Developer Tools“, click “Next“, accept the License and wait until ADT is installed, restart Eclipse and you are done šŸ˜€

Of course you have to make sure that you already have installed the Android SDK, if you haven’t, it is available here:

https://developer.android.com/sdk/index.html

And to make Eclipse familiar with the Android SDK, go to Eclipse, click on “Window > Preferences“, select “Android” in the left menu and then provide on the right hand side the path to where you have the SDK stored. With that set up you can manage all installed API version using the Eclipse shortcut “Window > Android SDK Manager“. Why shortcut, because this only executes the application “android” located in the SDK_folder/tools. You can also start this app without Eclipse:

./SDK_folder/tools/android

I wanna give a reference for this post, what helped me a lot to figure out how to treat eclipse the right way to get it updated:
http://crlog.info/2011/06/30/upgrading-eclipse-on-ubuntu-from-3-5-to-3-7-indigo-works-for-other-versions-too/

Ok, that’s it. I hope this is helpful and check back for more interesting stuff coming šŸ˜‰
cheers

norbert

Advertisements

5 thoughts on “Updating Eclipse from Galileo to Indigo on Ubuntu 10.04 with Android SDK

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s