Eclipse 3.3 in Linux

Environment
  • Ubuntu 7.1
  • Eclipse 3.3
Introduction
Ubuntu has Eclipse 3.2, but not 3.3, so need another way to get it

Prerequisites
Install JDK
#apt-get install sun-java6-sdk
Setup
Download Eclipse 3.3 from www.eclipse.org

Extract it to /opt

Create a batch named "eclipse" at /usr/bin
#!/bin/sh

export MOZILLA_FIVE_HOME=/usr/lib/mozilla/

export ECLIPSE_HOME=/opt/eclipse

$ECLIPSE_HOME/eclipse $*
Set it to executable
chmod 755 /usr/bin/eclipse
Create /usr/share/applications/eclipse.desktop to be a shortcut for GNOME

[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