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.export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
[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. ConfigurationYou now have a working eclipse, run this command first to initialize the settings:
/opt/eclipse/eclipse -clean
# more /opt/eclipse/eclipse.ini
ReplyDelete-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=512m