On Ubuntu we want a good IDE for developing programs for the microcontrollers, such as Atmel AVR, ARM MCUs. Eclipse is a prefect IDE with many features, come with Open Source and have many document, plugin.

But on Ubuntu 8.04 not have Eclipse 3.3 in repository, you must use manual install.

1. Before install Eclipse 3.3 you must have a Java 6 from SUN on your computer. check on Ubuntu

$java -version

If your computer have a Java GNU version, you must install a Java 6 from SUN

$sudo aptitude install sun-java6-jdk

When install complete, check a default jvm by:

$update-java-alternatives -l

you should get output similar to this:

>java-6-sun 63 /usr/lib/jvm/java-6-sun
>java-gcj 1042 /usr/lib/jvm/java-gcj

set the right jvm by use command:

$sudo update-java-alternatives -s java-6-sun

and insert /usr/lib/jvm/java-6-sun on the top of file /etc/jvm ($sudo gedit /etc/jvm)

$cat /etc/jvm
# This file defines the default system JVM search order. Each
# JVM should list their JAVA_HOME compatible directory in this file.
# The default system JVM is the first one available from top to
# bottom.
/usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-gcj
/usr/lib/jvm/ia32-java-1.5.0-sun
/usr/lib/jvm/java-1.5.0-sun
/usr

Check a version of Java again.

$java -version
java version “1.6.0_06″
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)

All Ok :)

2. Download Eclipse 3.3.2 from here

When download complete, make a new folder for install Eclipse

$sudo mkdir /usr/local/opt

Extract Eclipse archive to a new folder

tar -zxf your.downloaded.eclipse.version.tar.gz -C /usr/local/opt

Run Eclipse

$cd /usr/local/opt/eclipse
$./eclipse

Enjoy!!

PS. Eclipse out a new version 3.4 but i still never test it yet.