The Eclipse packages in Ubuntu are are very out of date. The latest version in the Ubuntu repos is 3.5.2 where as the latest version of Eclipse is 3.7.

I am posting the procedure to install Eclipse.

1) Download Eclipse from

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

2) Extract it

tar xzf eclipse-jee-indigo-SR2-linux-gtk.tar.gz

3) Move to /opt/ folder

mv eclipse /opt/
cd /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse

4) Create an eclipse executable in your path

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo gedit /usr/bin/eclipse

5) copy this into eclipse

#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

6) create a gnome menu item

sudo gedit /usr/share/applications/eclipse.desktop

copy this.........
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

7) Launch Eclipse for the first time

/opt/eclipse/eclipse -clean &