It is a common requirement for Java development. By default we can install eclipse indigo from Ubuntu software center. But most of the times we need to install different version's of Eclipse IDE [aka eclipse Helios or eclipse Juno ..etc.] based on project requirements.
In this tutorial, briefly explaining about how to install eclipse Helios 3.6 in Ubuntu.
Prerequisites :
Once you done with Java installation. Then, you can follow the below instruction's to install eclipse in you Machine running with Ubuntu
Syntax:
tar -xvf eclipse-SDK-3.6.1-linux-gtk.tar.gz
Once tar command executes successfully, Then it creates eclipse folder.
Next step is move the eclipse folder in to the root directory. To do this follow the given steps.
sudo mv eclipse /opt/
Enable the file and Folder permissions :
sudo chmod -R +r /opt/eclipse sudo chmod +x /opt/eclipse/eclipse
Create an executable in your path:
sudo touch /usr/bin/eclipse sudo chmod 755 /usr/bin/eclipse sudo gedit /usr/bin/eclipse
Copy the following content and paste it into eclipse file and save it:
#!/bin/sh export ECLIPSE_HOME="/opt/eclipse" $ECLIPSE_HOME/eclipse $*
Now, It's time to create a symlink to execute/ run eclipse everywhere.
sudo ln -s /usr/bin/eclipse /bin/eclipse
Finally, we need to create the menu icon:
sudo gedit /usr/share/applications/eclipse.desktop
Copy and paste the below content in to eclipse.desktop file and save it:
[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
Now everything is done. It's time to run eclipse [ aka. first time]:
eclipse -cleanIn Ubuntu you can also launch the eclipse using GNOME menu Applications -> Programming -> Eclipse.
Thank you so much for the clear and concise instructions. I wish more java tutorials were this comprehensive
ReplyDeleteThanks for your suggestions. I hope look forward you..
ReplyDelete