Install Eclipse IDE Fedora or Fix Error while Opening Eclipse

Try Fast Read
0
0



We usually get error while starting eclipse in fedora after installing from repository. This is caused due to incompatible JVM version. Here is how you install latest Eclipse and JDK

1. Make sure you remove all previous installation of Eclipse
#sudo yum remove eclipse
#sudo rm -Rf /usr/bin/eclipse

2. Install JDK
#sudo yum -y install java-*-openjdk java-*-openjdk-plugin

3. Download Eclipse from Here

4. Uncompress the downloaded file
#sudo tar -xvzf path_to_downloaded_eclipse -C /opt

5. Add read permission to all files
#sudo chmod -R +r /opt/eclipse

6. Create Eclipse executable
#sudo touch /usr/bin/eclipse
#sudo chmod 755 /usr/bin/eclipse

Open it in your favourite text-editor (Vim, Nano, gedit)
#sudo vim /usr/bin/eclipse
and add the following and save

#!/bin/sh
export ECLIPSE_HOME=”/opt/eclipse”
$ECLIPSE_HOME/eclipse $*

7. Create Launcher, open with your favourite text-editor (Vim, Nano, Gedit)
#sudo /usr/share/applications/eclipse.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 4.2.2
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

8. Now you can launch Eclipse from Menu or typing eclipse in terminal

Post navigation