Sunday, August 15, 2010

Android development on Eclipse

My notes on Android development

Install Eclipse and the java base (about 256Mb)

Install Java

Ubuntu 10.04 provides Java6 in the form of OpenJDK (openjdk-6-jdk). This is great for developers, but for those who wants to install Sun (Oracle) version of Java6, I will also provide the steps here

A) Install OpenJDK (check if its already installed before doing this!)
Step 1: open a terminal and type the following;

update-alternatives --query java

If you already have OpenJDK, then you do not need to install it anymore. If you do not have any Java JDK listed, then continue to step 2.

Step 2:
sudo apt-get install openjdk-6-jdk openjdk-6-jdk icedtea6-plugin

B) Install Sun (Oracle) Java JDK.
Step 1: Add the repository for Sun Java. Open a terminal and type the following;

sudo add-apt-repository "deb lucid partner"
sudo apt-get update

Step 2: Install the JDK along with the plugin

sudo apt-get install sun-java6-jdk sun-java6-plugin

Step 3: Make it your default
Sun Java is now installed, but you need to make it the default java to use:

sudo update-alternatives --config java

Install Eclipse

Open a terminal and type;

sudo apt-get install eclipse eclipse-pde eclipse-jdt eclipse-plugin-cvs

Install Android plugin for Eclipse

Refer for details at
Download and add the Eclipse plugin for Android by (update 15 Feb 2010)

previous post was;
$ wget

The tgz is for the android SDK.

1 comment:

Android app development said...

This is one of the high lighted post.Your blog has good knowledge which will help us to generate more traffic.Android app developers

Blog Archive