How to Install Eclipse Photon IDE in CentOS, RHEL and Fedora

In this tutorial we’ll cover the installation process of the latest edition of Eclipse Photon IDE in CentOS, Red Hat and Fedora based Linux distributions.

Eclipse is a free integrated development environment IDE used by programmers world-wide to write and develop Java applications mostly. However, Eclipse IDE can support a large variety of compilers and programming languages via installed plugins that extend its functionality.

The latest release of Eclipse Photon IDE doesn’t come with pre-build binary packages specific for RHEL or CentOS based Linux distributions. Instead, you can install Eclipse IDE in CentOS, Fedora or other Red Hat Linux based distributions via tarball archive files.

Requirements:

  1. A Desktop machine with minimum 2GB of RAM.
  2. Java 9 SE SDK installed in Red Hat Linux based distributions.

Install Eclipse IDE in CentOS, RHEL and Fedora

On the first step, open a browser, navigate to Eclipse official download page and download the latest version of the tar package specific for your installed Linux distribution architecture.

Installing Eclipse Photon IDE in CentOS and Fedora

Alternatively, you can also download Eclipse IDE tarball file in your system via wget utility, by issuing the below command.

-------------- For 64-bit Architecture -------------- 
$ wget http://ftp.fau.de/eclipse/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk-x86_64.tar.gz

-------------- For 32-bit Architecture --------------
$ wget http://ftp.fau.de/eclipse/technology/epp/downloads/release/photon/R/eclipse-jee-photon-R-linux-gtk.tar.gz

Installing Eclipse Oxygen IDE in CentOS and Fedora

-------------- For 64-bit Architecture -------------- 
$ wget http://ftp.fau.de/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk-x86_64.tar.gz

-------------- For 32-bit Architecture --------------
$ wget http://ftp.fau.de/eclipse/technology/epp/downloads/release/oxygen/R/eclipse-jee-oxygen-R-linux-gtk.tar.gz

After the download completes, navigate to the directory where the archive package has been downloaded and issue the below commands to start installing Eclipse IDE.

The commands executed below will install Eclipse IDE directly into /opt directory. Afterwards, create a symlink into /usr/local/bin/ directory for Eclipse IDE executable file and verify symbolic link path via ls command.

$ sudo tar xfz eclipse-jee-photon-R-linux* -C /opt/  [For Photon]
$ sudo tar xfz eclipse-jee-oxygen-R-linux* -C /opt/  [For Oxygen]
$ ls /opt/eclipse/
$ sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse
$ ls -al /usr/local/bin/eclipse 

Next, create Eclipse desktop launcher into system applications directory.

$ sudo nano /usr/share/applications/eclipse.desktop

Add the following configuration into the file eclipse.desktop.

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

After you’ve created Eclipse launcher, use Gnome dash to search and open the application. On the first application launch, add Eclipse workspace directory and hit on Launch button to start the application.

Launch Eclipse Oxygen IDE

Launch Eclipse Oxygen IDE

Add Eclipse Oxygen IDE Workspace

Add Eclipse Oxygen IDE Workspace

Eclipse Oxygen IDE

Eclipse Oxygen IDE

Congratulations! You’ve successfully installed the latest version of Eclipse IDE in your Red Hat Linux based system.

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

Matei Cezar

I'am a computer addicted guy, a fan of open source and linux based system software, have about 4 years experience with Linux distributions desktop, servers and bash scripting.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

16 Responses

  1. Hari says:

    Sir Is there any rpm to install eclipse on centos5.8

  2. Sachin Marge says:

    Hi all,

    Can you share the wget latest link to download Eclipse.
    like to download Eclipse from below link for linux , but it’s not working

    http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/juno/SR2/eclipse-jee-juno-SR2-linux-gtk-x86_64.tar.gz

    • Ravi Saive says:

      @Sachin,
      Sorry to hear that, actually this article is too old and haven’t been updated yet. Thanks for informing about that broken link, we will update the article by today so that you guys can have latest version installed on your systems..

  3. Lina says:

    I got these lines. Dont know what to do… Please help

    /usr/bin/eclipse: line 1: [Desktop: command not found
    /usr/bin/eclipse: line 4: SDK: command not found
    /usr/bin/eclipse: line 9: Application: command not found
    /usr/bin/eclipse: line 9: Development: command not found

  4. chandra says:

    This was very helpful. Thanks for the post. It worked perfect.

  5. Nelson Hernández says:

    Need help, when I start eclispe displays this message “Error during initialization of VM
    Could not reserve enough space for object heap “… help me are my first steps … I’m running the Linux operating system in a virtual machine might be that the problem?

  6. Matthew Pintor says:

    cannot run/execute binary file. how to fix this?

  7. hoy says:

    very nice, thanks alot

  8. Bob says:

    That was awesome! Thanks!

  9. Ashish says:

    hey really thank you very much foe this stuff..:):):):)

  10. Akhilesh says:

    Eclipse install fines on centos 6.3, However display is broken, icons are misplaced

Got something to say? Join the discussion.

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.