1. Download Eclipse (tar.gz package from its official site)
2. Extract it and rename it by (eclipse)
3. Start your terminal
4. Logo on to super user
sudo -i
5. Go to the directory where eclipse is extracted using
cd
6. Move "eclipse" directory to OPT directory
mv eclipse /opt/
sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
7. Create an eclipse executable in your path
sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudo nano /usr/bin/eclipse
8. It will open nano screen copy below lines in it(Save it using ^o="ctrl+o" then exit nano ^x="ctrl+x")
#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/ope/eclipse"
$ECLIPSE_HOME/eclipse $*
9. Create Gnome menu Item
sudo nano /usr/share/applications/eclipse.desktop
10. Again copy below lines in nano screen then save and exit 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
11. Start you eclipse for first time
/opt/eclipse/eclipse -clean &
Now you are ready to use eclipse further on when you need to start eclipse use your terminal to start it by super user writing only "eclipse" in it
No comments :
Post a Comment