Requirements: Your box must have Sun Java installed in it.
1. Download Eclipse SDK in www.eclipse.org/downloads.
2. Change to root user by: sudo -i
3. Extract Eclipse package to /opt directory using this code:
tar -xvzf /path/eclipse-java-helios-SR1-linux-gtk.tar.gz -C /opt
where path = the location of the .gz
4. Add read permissions to all files where the file is extracted by:
chmod -R +r /opt/eclipse
5. Create Eclipse Executable on /usr/bin path by:
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
6. Then edit the created file by using nano editor:
nano -w /usr/bin/eclipse
and appended this code:
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
7. Create Gnome desktop launcher by:
nano -w /usr/share/applications/eclipse.desktop
then add this content to file and save:
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 3.6.1
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Note: If you get an error like:
Failed to Load the JNI shared library.....
OR
/usr/java/jdk1.6.0_21/.....:Permission denied
Then do following command:
chcon -t execmeem_exec_t '/opt/eclipse/eclipse'
and try again.
1. Download Eclipse SDK in www.eclipse.org/downloads.
2. Change to root user by: sudo -i
3. Extract Eclipse package to /opt directory using this code:
tar -xvzf /path/eclipse-java-helios-SR1-linux-gtk.tar.gz -C /opt
where path = the location of the .gz
4. Add read permissions to all files where the file is extracted by:
chmod -R +r /opt/eclipse
5. Create Eclipse Executable on /usr/bin path by:
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
6. Then edit the created file by using nano editor:
nano -w /usr/bin/eclipse
and appended this code:
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
7. Create Gnome desktop launcher by:
nano -w /usr/share/applications/eclipse.desktop
then add this content to file and save:
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 3.6.1
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Note: If you get an error like:
Failed to Load the JNI shared library.....
OR
/usr/java/jdk1.6.0_21/.....:Permission denied
Then do following command:
chcon -t execmeem_exec_t '/opt/eclipse/eclipse'
and try again.
No comments:
Post a Comment