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.







2 Comments
Thanks for this useful tutorial!
I have Unbuntu 8.04 for AMD 64, and at first I was not able to start eclipse after I had installed eclipse-SDK-3.3.2-linux-gtk.tar.gz (Linux (x86/GTK 2)). I had the same problem with Eclipse PDT in the past.
Then I tried eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz (for Linux (x86_64/GTK 2)), and that worked okay!
thanks a lot for doing this.
I was following instructions from a book and it did not work.
Also- I did not want to place plugins in my home filing system.
so i logged in as root (su) to do my plugin updates:
$ sudo su
$ passwd
$ /location_of_eclipse ./eclipse
are you a new user? never remain logged in as su!!!
Write a Comment