Home –  How toinstall – How to install eclipse in Linux (CentOS, RHEL, Fedora)

How to install eclipse in Linux (CentOS, RHEL, Fedora)

how to install eclipse in linux

Eclipse is an integrated development ennvironment primarily for Java but with the extra plugins it can also be used to develop applications in C, C++, PHP, Scala, etc.

Here we are explaining How to install eclipse on linux. Distros covered are Fedora, CentOS and RHEL.

Download Eclipse

Go to www.eclipse.org/downloads/ and select suitable version according to your needs.

Switch to root

ayush@linuxstall:$ su -

Extracting

We are extracting the Eclipse package into /opt directory.

ayush@linuxstall:$ tar -xvzf eclipse-SDK-3.7.2-linux-gtk.tar.gz -C /opt

Adding read permissions

ayush@linuxstall:$ chmod -R +r /opt/eclipse

Creating executable

ayush@linuxstall:$ touch /usr/bin/eclipse
ayush@linuxstall:$ chmod 755 /usr/bin/eclipse
ayush@linuxstall:$ gedit /usr/bin/eclipse

Paste following code in the file.

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

You are done!

3 thoughts on “How to install eclipse in Linux (CentOS, RHEL, Fedora)

  1. Hmm, I usually just extract it and copy it to some folder like /home/user/Programs

  2. Ian

    When I performed the last step, I got this:
    (gedit:24210): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

Leave a Reply

Your email address will not be published. Required fields are marked *