Powered by Syntax Highlighter scripts!

Installing eclipse latest version on Ubuntu manually

The eclipse version that comes with the Ubuntu is a eclipse core platform. I was not able to run the JavaEE plugins even though they were successfully installed as plugns. After some number of tries and tweaks and research on web, found this link to be very useful for installing eclipse with JavaEE.
http://colinrrobinson.com/technology/install-eclipse-ubuntu/

I liked this way mainly because it gives me a view of where the files are getting copied and what files are being touched to get this installation done :) getting hands dirty on this new ubuntu is interesting and and at the same time nice learning.

Listing the steps below for reference, almost same as the one given in link above:

1) Download Eclipse. I got eclipse-jee-indigo-SR2-linux-gtk.tar.gz to the Downloads folder

2) open the Terminal and navigate to the Downloads folder

3) Extract it using the command below
tar xzf eclipse-jee-indigo-SR2-linux-gtk.tar.gz

4) Move to /opt/ folder
sudo mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse

5) Create an eclipse executable in your path
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse

copy this into nano
#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*

save the file (^O = Ctrl+o) and exit nano (^X = Ctrl+x)

6) Create a gnome menu item
sudo nano /usr/share/applications/eclipse.desktop

copy this into nano
[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

save and exit nano

7) Launch Eclipse for the first time
/opt/eclipse/eclipse -clean &

8) Right click on the Eclipse icon in launcher and select "Lock to Launcher" option to create a launcher shortcut


No comments: