Wednesday, April 8, 2009

How to Install eclipse and Add it to Desktop


1. Download the eclipse-jee-ganymede-SR2-linux-gtk.tar.gz from eclipse.org

2. Extract the eclipse to /opt directory

[root@www opt]#
tar xvfz eclipse-jee-ganymede-SR2-linux-gtk.tar.gz

3. Change the ownship to root:
[root@www opt]# chown -R root:root eclipse
[root@www opt]#chmod -R +r eclipse
4.Then create an eclipse executable in your path
[root@www opt]# touch /usr/bin/eclipse
[root@www opt]# chmod 755 /usr/bin/eclipse

[root@www opt]# vim /usr/bin/eclipse
with this contents:
#!/bin/sh

export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
5.Then create a gnome menu item, download one of eclipse icon from eclipse website, and put it into the /op/eclipse directory as eclipse.png.
[root@www opt]# vim /usr/share/applications/eclipse.desktop
with the following contents:
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/eclipse.png
Terminal=false
Type=Application
Categories=GNOME;Application;Development;

StartupNotify=true


6. Configuration
You now have a working eclipse, run this command first to initialize the settings:
/opt/eclipse/eclipse -clean

Then from here on you can run from the menu item applications/programming/eclipse




1 comment:

  1. # more /opt/eclipse/eclipse.ini

    -vmargs
    -Xms40m
    -Xmx512m
    -XX:MaxPermSize=512m

    ReplyDelete