Install Eclipse Mars 4.5 on Fedora 24/23, CentOS/RHEL 7.2/6.8/5.11

Eclipse LogoThis is guide, howto install latest Eclipse Mars.2 4.5.2 on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 24/23/22/21/20/19/18/17/16/15/14/13/12, CentOS 7.2/6.8/5.11 and Red Hat (RHEL) 7.2/6.8/5.11 and even with earlier versions. Latest working version on CentOS/RHEL 5.11 is Eclipse Luna 4.4.2.

Eclipse is a multi-language software development environment comprising an integrated development environment (IDE) and an extensible plug-in system. It is written primarily in Java and can be used to develop applications in Java and, by means of various plug-ins, other languages including C, C++, COBOL, Python, Perl, PHP, Scala and Ruby (including Ruby on Rails framework).

Install Eclipse Mars.2 4.5.2 on Fedora 24/23/22/21, CentOS/Red Hat (RHEL) 7.2/6.8/5.11

1. Install Sun/Oracle Java JDK 8

Install Sun/Oracle Java JDK 8 on Fedora, CentOS, Red Hat (RHEL)

2. Download Eclipse Mars.2 4.5.2

Download suitable version from www.eclipse.org/downloads. This guide uses Eclipse IDE for Java Developers version. Another popular versions are Eclipse IDE for Java EE Developers and Eclipse for PHP Developers. Select also 32-bit or 64-bit version depending on your system. You can download Eclipse Luna 4.4.2 for CentOS/RHEL 5.11 from here.

3. Change root user

4. Extract Eclipse package (example to /opt directory)

5. Add read permissions to all files

6. Create Eclipse executable on /usr/bin path

7. Create Gnome desktop launcher

8. Start Eclipse 4.5.2

From command line use eclipse command (as normal user!)

From Desktop menu Gnome 3 Eclipse 4.4.2
Eclipse Luna SR1a 4.4.1 Launcher

From Desktop menu Gnome 2 and Eclipse
Eclipse SDK 3.6.2 Launcher Gnome

9. Eclipse 4.5 screenshot, running on Fedora 22 64-bit

Eclipse Mars 4.5 Running on Fedora 22

Troubleshooting

If you get something like following errors:

Failed to load the JNI shared library /usr/java/jdk1.6.0_21/jre/bin/../lib/i386/client/libjvm.so
Or
/usr/java/jdk1.6.0_21/jre/bin/../lib/i386/client/libjvm.so: cannot enable executable stack as shared object requires: Permission denied

Then do following:

and try again.

Share this post

167 Comments

  1. I am using Fedora 20 in my 32 bit machine.I installd the eclipse-jee-kepler-SR2-linux-gtk.tar.gz package according to all the above steps. But after doing all this i am having some problem while creating eclipse desktop icon. In the terminal while typing “eclipse” it is working fine.

    So Please check my eclipse.desktop file…

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

    Please help me in solving the problem.
    Thank You….

    Reply
  2. when i launch eclipse on fedora 20
    it gives instead a minus and

    JVM terminated. Exit code=14
    /usr/bin/java
    -Xms128m
    -Xmx512m
    -Dorg.eclipse.swt.browser.UseWebKitGTK=true
    -Dhelp.lucene.tokenizer=standard
    -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
    -XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,
    -XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates,instantiateTemplate
    -XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage,addBinding
    -XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile
    -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState
    -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
    -Declipse.p2.skipMovedInstallDetection=true
    -XX:MaxPermSize=256m
    -jar /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140324-2308.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash /usr/lib64/eclipse//plugins/org.eclipse.platform_4.3.2.v20140324-2304/splash.bmp
    -launcher /usr/lib64/eclipse/eclipse
    -name Eclipse
    –launcher.library /usr/lib64/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140324-2308/eclipse_1508.so

    Plesae help me to make it lauch .

    Reply
    • Hi jules,

      Did you tried to run Eclipse as root user or normal user?

      Reply
  3. How can I uninstall Eclipse if I use this method for installation?

    Reply
    • Hi Mriyam,

      You could remove Eclipse using following commands:

      This doesn’t remove your data from home directory, just this guide Eclipse installation.

      Reply
  4. Awesome! Very nice that you include on how to do the [Desktop Entry] etc.! Thank you! :)

    Reply
  5. there is a “nano ~” missing in point 7 before “/usr/share/appl….”
    It doesn’t work without it.

    Reply
    • Hello Vasile,

      You can use any editor (nano, pico, vim/vim, joe etc.), that’s why there is only mention, “Create following file, with our favourite editor”.

      Reply
      • You’re right, sorry!

        Reply
  6. Thank You !

    Reply
  7. yo lo instale con $ yum install eclipse. !!!!!!

    Reply
    • Hi carlos,

      Yes, Eclipse Mars 4.5 is available if you have Fedora 22/23/24.

      And better command is:

      This is manual method and works EL 5/6/7 and older Fedoras. And you can select your Eclipse version from http://www.eclipse.org/downloads/

      Reply
  8. Hi,

    I did try using Eclipse Installer and it seems good.
    https://www.eclipse.org/downloads/
    After that I have applied [ 7. Create Gnome desktop launcher ] to create desktop icon.

    Reply
  9. thank you for this – installed Eclipse Mars without incident in my Fedora 23 32-bit

    Reply
  10. Hi,

    This website is awesome!!! Kudos to the owner. Can you please, post a tutorial on how to install Hadoop, Big Data, Sqoop, Hadoop Single Node Cluster, HBase, Hive, Spark, on Fedora 23, Ubuntu, OpenSuSE, and CentOS ???????

    Please, You are porbably only few of the Linux Guru’s who knows everything. Thanks

    Reply
  11. /usr/bin/eclipse: /opt/eclipse/eclipse: /lib/ld-linux.so.2: bad ELF interpreter:

    PLZ help me how to solve it.I follow ur blog java1.7,tomcat7 running seccesfully but eclipse cant. Plz help.
    Thanks
    kunal raut

    Reply
    • Hi kunal,

      Could post output of following command:

      And full file name what you downloaded?

      Reply
  12. Running Install Eclipse Mars 4.5 on RHEL 5.11
    I get the following error message after having follow your steps.

    configure: error: Package requirements (glib-2.0 >= 2.28.0 atk >= 1.30 pango >= 1.20 cairo >= 1.10.0 cairo-gobject >= 1.10.0 gdk-pixbuf-2.0 >= 2.22.0) were not met:

    No package ‘glib-2.0’ found
    No package ‘atk’ found
    No package ‘pango’ found
    No package ‘cairo’ found
    No package ‘cairo-gobject’ found
    No package ‘gdk-pixbuf-2.0’ found

    Consider adjusting the PKG_CONFIG_PATH environment variable if you
    installed software in a non-standard prefix.

    Alternatively, you may set the environment variables BASE_DEPENDENCIES_CFLAGS
    and BASE_DEPENDENCIES_LIBS to avoid the need to call pkg-config.
    See the pkg-config man page for more details.

    Do you have a screen shot of it working on RHEL 5.11 if so could you please reference your steps so that I can follow them. Thanks.

    Reply
    • Hi Daniel,

      This is actually my mistake. Latest working version (on CentOS/RHEL 5.11) is Eclipse Luna (4.4.2) http://www.eclipse.org/downloads/packages/release/Luna/SR2

      Simply Download your package and run following commands (I assume that you have installed Mars as described):

      Then you can also modify your launcher “Comment” row.

      Reply

Submit a Comment

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