Tuesday 30 November 2010

Installing Eclipse IDE onto Ububtu Linux

Rather than just using a basic text editor for writing java language applications, or an other programming language, it is always good to use an IDE. The following explains how to install the Eclipse IDE on an Ubuntu machine. Similar setup applies to most Linux flavors:

1. Download eclipse from the download site, http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/heliossr1

2. Extract the contents:
tar xzf eclipse-java-helios-SR1-linux-gtk.tar

3. Moved the extracted contents to /opt
sudo mv eclipse /opt/eclipse

4. Change permissions and create executable
sudo chmod +rx
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse

Input the following contents:


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

$ECLIPSE_HOME/eclipse $* 


5. If you want a menu item:
sudoedit /usr/share/applications/eclipse.desktop

with the following contents:

[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 run from the programming menu under applications. 

No comments:

Post a Comment