Installing and configuring the Eclipse java in Linux

Written By smart| 24 June 2009| No Comment

Download the eclipse from below link

click here to download

eclipse

tar xzf eclipse-jee-ganymede-SR2-linux-gtk.tar.gz
sudo mv eclipse /home/user_name/eclipse-jee

then cd to /home/user_name/eclipse-jee and change the ownership using belwo comamnd

sudo chown -R root:root eclipse

Sudo chmod -R +r eclipse

This is whats done in the original tutorial.

tar xzf wtp-all-in-one-sdk-1.0-linux-gtk.tar.gz
sudo mv eclipse /opt/eclipse cd /opt sudo chown -R root:root eclipse
sudo chmod -R +r eclipse
sudo chmod +x `sudo find eclipse -type d`
Then create an eclipse executable in your path

Note: An easy way to do the following is to create a file with name ‘eclipse’ in /usr/bin and provide following commands

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse

then provide the code to set environment variables as mentioned.

This is what is done in the original tutorial

sudo touch /usr/bin/eclipse
sudo chmod 755 /usr/bin/eclipse
sudoedit /usr/bin/eclipse
With this contents
#!/bin/sh
#export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*

Then create a gnome menu item
sudoedit /usr/share/applications/eclipse.desktop
With this 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

Configure

You now have a working eclipse. But run this command first to initialise the set up.

/opt/eclipse/eclipse -clean

You can know how to run java in eclipse click on the below link

click here to know how to add project

Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.