Java and Eclipse on Ubuntu

JAVA

JDK : Here
JRE : sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts


Eclipse
1. cd /opt/
2. wget http://ganymede-mirror1.eclipse.org/technology/epp/downloads/release/gan...
3. tar xvfz eclipse-jee-ganymede-linux-gtk.tar.gz

Finalizing Eclipse

1. sudo chown -R root:root eclipse
2. sudo chmod -R +r eclipse
3. sudo chmod +x `sudo find eclipse -type d`

4. sudo touch /usr/bin/eclipse
5. sudo chmod 755 /usr/bin/eclipse
6. sudo gedit /usr/bin/eclipse (Opens a File)

Paste the below ,save and exit :


#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

7. Make a launcher :

sudo gedit /usr/share/applications/eclipse.desktop (Opens a file)

Paste the below ,save and exit :


[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

8. Launch Eclipse
eclipse -clean

P.S : The icon may fail to load , try alternative shortcut methods .
From the next launch you can do it from Applications>>Programing>>Eclipse


Share this