Install Eclipse SDK 4.3.1 (Kepler) on Fedora 20/19, CentOS/RHEL 6.5/5.10

Eclipse LogoThis is guide, howto install latest Eclipse SDK 4.3.1 (Kepler) on Fedora, CentOS and Red Hat (RHEL). This guide should work with Fedora 20/19/18/17/16/15/14/13/12, CentOS 6.5/6.4/6.3/6.2/6.1/6/5.10 and Red Hat (RHEL) 6.5/6.4/6.3/6.2/6.1/6/5.10 and even with earlier versions.

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 SDK 4.3.1 (Kepler) on Fedora 20/19/18, CentOS/Red Hat (RHEL) 6.5/5.10

1. Install Sun/Oracle Java JDK 7

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

2. Download Eclipse SDK 4.3.1 (Kepler)

Download suitable version from This guide uses Eclipse Classic 4.3.1 version. Another popular versions are Eclipse IDE for Java EE Developers, Eclipse IDE for Java Developers and Eclipse for PHP Developers. Select also 32-bit or 64-bit version depending on your system.

3. Change root user

su -
## OR ##
sudo -i

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

## x86 - 32-bit ##
tar -xvzf eclipse-standard-kepler-R-linux-gtk.tar.gz -C /opt
## x86_64 - 64-bit ##
tar -xvzf eclipse-standard-kepler-R-linux-gtk-x86_64.tar.gz -C /opt

5. Add read permissions to all files

chmod -R +r /opt/eclipse

6. Create Eclipse executable on /usr/bin path

touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
## Open eclipse file with your favourite editor ##
nano -w /usr/bin/eclipse
## Paste following content to file ##
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*

7. Create Gnome desktop launcher

## Create following file, with our favourite editor ##
## Add following content to file and save ##
[Desktop Entry]
Comment=Eclipse SDK 4.3.1

8. Start Eclipse 4.3.1

From command line use eclipse command


From Desktop menu Gnome 3 Eclipse 4.3.1
Fedora 15 Applications Programming Eclipse

From Desktop menu Gnome 2 and Eclipse 3.6 (Helios)
Eclipse SDK 3.6.2 Launcher Gnome

9. Eclipse 4.3 screenshot, running on Fedora 19 64-bit

Eclipse 4.3 Kepler running on Fedora 19


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/
/usr/java/jdk1.6.0_21/jre/bin/../lib/i386/client/ cannot enable executable stack as shared object requires: Permission denied

Then do following:

chcon -t execmem_exec_t '/opt/eclipse/eclipse'

and try again.

Follow If Not True Then False Updates!


  1. I am a linux newbie and have been trying to install Eclipse 3.7 on Ubuntu 10.4. I looked at your guide and comments and saw a reference to my problem:
    Could not launch Eclipse. Failed to launch child process ‘eclipse’ No such file or directory.
    I saw your response about mismatched 32 and 64 bit versions of eclipse and java. I checked and I believe I am running 32 bit ubuntu, 32 bit eclipse and a 32 bit jvm. Could you possibly help me further as to why I can’t launch eclipse?
    Mike O’Brien

  2. I too have the problem when I try to launch eclipse from “application->programming->eclipse” I have the following message:
    Could not launch eclipse
    Failed to execute child process “eclipse” (no such file or directory)

    I verified that I am running 32 bit ubuntu 10.04, 32 bit eclipse V3.7, and a 32 bit java. Thus the answer above for this problem doesn’t seem to apply to me.
    Any suggestions?

    • Hi Mike,

      What happens if you try to start it directly from command line:


      If if fails again then I recommend you to remove eclipse directory download Eclipse 3.7.1 again and go thru again this installation procedure.

    • hi mike..
      got your problem,you need to set proper path for “Exec” field in your desktop launcher file (of your eclipse executable file) i.e


  3. This tutorial made me happy! It’s not often I find exactly what I was looking for on the web. This is one of those rare finds: clear, concise, and it works!

    One word: Bravo!

  4. Hi, great article.. I have been trying to install anjuta IDE for GTK because i wanted to compile a c project which has GTK GUI. But it gave dependency errors, after trying too much i was unable to install it, so i turned to eclipse.
    Could it be possible to compile c/GTK project in eclipse?, if yes how to install GTK package in eclipse I have Redhat Linux 6.0 64 bit version, waiting for your positive reply

  5. I got :error: Failed dependencies:
    autogen is needed by anjuta-1:3.2.0-1.fc16.x86_64
    glade3-libgladeui >= 3.9.2 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libgda-sqlite >= 4.2.0 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64 is needed by anjuta-1:3.2.0-1.fc16.x86_64

    when i tried to install dependencies such as libgda,gtk+-3.2 etc packages then packages showed another dependencies.. and so on

    Now i am downloading eclipse CDT,
    anyway, thanks for the help JR

    • I actually just test yum install anjuta and my output looks following on Fedora 16:

      Dependencies Resolved
       Package                Arch        Version                  Repository    Size
       anjuta                 x86_64      1:3.2.0-1.fc16           fedora       3.8 M
      Installing for dependencies:
       autogen                x86_64      5.9.4-8.fc15             fedora       323 k
       autogen-libopts        x86_64      5.9.4-8.fc15             fedora        44 k
       devhelp                x86_64      1:3.2.0-1.fc16           fedora       238 k
       git                    x86_64           updates      3.0 M
       glade3-libgladeui      x86_64      1:3.10.0-6.fc16          updates      459 k
       guile                  x86_64      5:1.8.8-3.fc16           fedora       1.3 M
       libgda                 x86_64      1:4.2.8-2.fc16           updates      1.1 M
       libgda-sqlite          x86_64      1:4.2.8-2.fc16           updates       45 k
       libgdl                 x86_64      1:3.2.0-1.fc16           fedora       226 k
       perl-Error             noarch      1:0.17016-6.fc16         fedora        30 k
       perl-Git               noarch           updates       40 k
       sqlite-devel           x86_64           fedora        95 k
       vala                   x86_64      0.14.2-1.fc16            updates      1.5 M
      Transaction Summary
      Install      14 Packages
      Total download size: 12 M
      Installed size: 33 M

      So anjuta with dependencies is installed smoothly.

      You could maybe try run:

      yum clean all

      an try installation again.

      Do you get Eclipse CDT working? :)

  6. Thank you for this tutorial, really clear and easy to follow. And it worked!


    Locking is not possible in the directory “/opt/eclipse/configuration/org.eclipse.osgi”. A common reason is that the file system or Runtime Environment does not support file locking for that location. Please choose a different location, or disable file locking passing “-Dosgi.locking=none” as a VM argument.
    /opt/eclipse/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)

    • Hi Vikash,

      Just tested this guide and updated it to latest 3.7.2 version. For me this is working normally. Do you have right permissions on /opt/eclipse directory?

  8. HI ALl.
    I have done all the steps as suggested here,but when i try to open eclipse by cmd “eclipse”
    it says ” can not execute /opt/eclipse/eclipse” binary file
    PLease help me in insolving this issue’

    • Hi Jay,

      Could you post output of following commands:

      ls -la /opt
      ls -la /opt/eclipse
    • I got this problem when I tried running a 64 bit Eclipse on a 32 bit Fedora. Fixed by downloading the 32 bit version instead.

  9. worked perfectly. Thanks for the info. :)

  10. This is a good post, I’m little bit trouble in nano. If you are trouble with it, use vim editor
    vi /usr/bin/eclipse
    vi /usr/share/applications/eclipse.desktop


  11. thanks for help

  12. I did all the above but the icon didn’t show on desktop or through the menu of programs , any way, when i type “eclipse” in terminal it works fine, my question is ; how do you remove it !? I tried using add/delete software but it’s not seeing it as a package,I tried “yum remove eclipse” but it’s not seeing it, please help, thank you

    • hi..

      TO RUN:
      check the paths you had given for “Exec” and “Icon” fields in your desktop launcher file(eclipse.desktop).

      TO REMOVE:
      if you have followed the above steps only to install then in order to remove eclipse, simply remove the directory of eclipse.

  13. Thank you very much for the tips! I was able to install Eclipse on CentOS effortlessly.

  14. tar -xvzf should be tar xvzf

    • Hi jintux,

      Why it should be without dash? It’s exactly same command. Some versions of tar even may require a dash before the option string.

  15. Thanks, Eclipse Juno is latest now.

  16. help me

    i got following error

    could not execute “/opt/eclipse/eclipse” binary file

    then what i have to do

    • Hi paramesh,

      Did you tried it as normal user or root?

      Could you post output of following command:

      ls -la /opt/eclipse
  17. Thanks so much! Works great for me! I’m using Fedora 16 with Eclipse JRE (Juno) 4.2.

  18. @betaroot and @Dave D

    Thanks, I updated guide to latest Eclipse 4.2 Juno. :)

  19. i got following error
    could not execute “/opt/eclipse/eclipse” binary file

    i have tried as root user
    the out put of
    ls -la /opt/eclipse is as follows

    [root@localhost bin]# ls -la /opt/eclipse
    total 864
    drwxr-xr-x 9 507 1109 4096 Feb 8 23:20 .
    drwxr-xr-x 3 root root 4096 Jul 6 10:16 ..
    drwxr-xr-x 2 507 1109 4096 Feb 8 23:20 about_files
    -rw-r–r– 1 507 1109 18909 Feb 8 19:25 about.html
    -rw-r–r– 1 507 1109 95576 Feb 8 23:20 artifacts.xml
    drwxr-xr-x 5 507 1109 4096 Feb 8 23:20 configuration
    drwxr-xr-x 2 507 1109 4096 Feb 8 23:20 dropins
    -rwxrwxrwx 1 507 1109 71023 Feb 8 19:46 eclipse
    -rw-r–r– 1 507 1109 279 Feb 8 23:20 eclipse.ini
    -rw-r–r– 1 507 1109 59 Feb 8 19:06 .eclipseproduct
    -rw-r–r– 1 507 1109 16536 Feb 8 19:06 epl-v10.html
    drwxr-xr-x 167 507 1109 28672 Feb 8 23:20 features
    -rw-r–r– 1 507 1109 9022 Feb 8 19:24 icon.xpm
    -rwxr-xr-x 1 507 1109 335360 Feb 8 19:24
    -rw-r–r– 1 507 1109 8951 Feb 8 19:06 notice.html
    drwxr-xr-x 4 507 1109 4096 Feb 8 23:19 p2
    drwxr-xr-x 35 507 1109 155648 Feb 8 23:20 plugins
    drwxr-xr-x 2 507 1109 4096 Feb 8 23:20 readme
    [root@localhost bin]#

    • Could you also post output of following command:

      java -version

      Did you change /opt/eclipse/eclipse permissions?

  20. Juno Eclipse does not work well with JDK 7, but with JDK6, I suggest first checking the JDK version you have, necessarily LibreOffice uses JDK 7 and so far both can not operate in the same fedora XD¡¡¡ , I hope this review helps.

  21. Awesome thanks for the blog…….. I could successfully install Eclipse Juno 4.2

  22. Hi! I installed Eclipse on Fedora 17 following your guide and it ran fine until today, the executable refused to luanch from the desktop icon or from the terminal so I ran chmod 775 it, and then ran it from the terminal. I was then bombared with these messages:

    /usr/bin/eclipse: line 3864: conservatizing: command not found
    /usr/bin/eclipse: line 3865: consonantize: command not found
    /usr/bin/eclipse: line 3866: consonantizes: command not found
    /usr/bin/eclipse: line 3867: constitutionalization: command not found
    /usr/bin/eclipse: line 3887: $'constitutionalizations\nconstitutionalizations\nconstitutionalize\nconstitutionalizes\ncontainerization\ncontainerize\ncontainerized\ncontainerizes\ncontainerizing\ncontemporization\ncontemporize\ncontemporized\ncontemporizes\ncontemporizing\ncontroversialize\ncontroversializes\nconundrumize\nconundrumizes\nconventionalization\nconventionalizations': command not found

    After the messages finish, Ark runs…I’m not sure what happened, the only thing I did today was install AbiWord using yum. Any ideas? Thanks!

    • Hi Saaraneth,

      Could you post output of following commands:

      java -version
      ls -la /opt/eclipse
      ls -la /usr/bin/eclipse
      cat /usr/bin/eclipse
      • Thanks so much for your help, JR! I figured it out after the cat command. I was trying to enable spellcheck in Eclipse, so I downloaded a dictionary of words, and must have accidentally overwritten /usr/bin/eclipse with the dictionary. I’ve replaced the file and everything is fine again.

        • You are welcome! Excellent to hear that you got it working! :)

  23. GREAT Thank you!
    The eclipse.desktop file wont work because since Fedora 17 latest Updates (6.09.12) you dont can use GNOME as category. This here works:

    [Desktop Entry]
    Comment=Eclipse SDK 4.2
    Exec=/bin/sh "/opt/eclipse/eclipse"

    • Hi thorty,

      I just tested this on Fedora 17, with latest updates and following works normally for me:

      [Desktop Entry]
      Comment=Eclipse SDK 4.2.1
  24. By far! this is the best website for linux users, thanks for this, thanks a lot for your very good and well done guides!

    • Hi César,

      Thank you very much! Nice to hear that you like my guides! :)

  25. thank you

  26. Thanks JR.

    This is the seconnd guide I follow from you. Just Awesome both of them. Just one question:

    The Icon won’t show on the desktop. Fedora 17 latest update. Eclipse, Java and SDK working like a charm.

    Here is my eclipse.desktop:

    [Desktop Entry]
    Comment=Eclipse SDK 4.2.1

    Thank you Thank you Thank you

    • Hi Zuken,

      Nice to hear that you have found useful guides.

      What you mean “The Icon won’t show on the desktop”?
      You should look from Activities and Application menu.

  27. Very nice guide! Everything worked as described.

    Except for one problem. I have installed Eclipse 4.2.1 on CentOS 6.3. I am not exactly sure if this has to do with the setup procedure, but I am running into a problem where Eclipse cannot access environment variables set by ~/.bashrc. I am also not sure if this has to do with CentOS 6.3.

    BTW, I am using Eclipse 4.2.1 locally on a RHEL 5.8 system with the exact environment variable setup (in ~/.bashrc), and I don’t have the problem.

    Please do share if you have any thoughts on why the environment variables are not getting read by Eclipse. Thanks.

    • Hi TP,

      Do you try to read these environment variables using Java on Eclipse or are you setting some Eclipse/Java/Ant environment variables?

      The ~/.bashrc file is (normally) read and sourced by bash when a non-login interactive shell is started, for example, when you open a virtual console from the desktop environment.

      • Hi JR,

        Actually, these environment variables used by one of Eclipse plugins. So it is the latter case.

        Meanwhile I tried something else. I unpacked the Eclipse package under my home (i.e. $HOME/tools/eclipse). The environment variables are then picked up by the local version of Eclipse. BTW, it is launched from a terminal window. Of course, that also means I didn’t create a desktop launcher for this.

        Needless to say, I also tried to run the Eclipse installed under /opt/eclipse from a terminal window, but that did not help.


        • Hi again TP,

          Sounds like .bashrc is working as it should work, environment variables work when you start local installation from command line. I recommend you to set your variables globally under /etc/profile.d/.

          1. Create file:

          2. Then add your variables to this file, like:

          export TMP_VARIABLE=/tmp

          3. Then reboot your system or try:

          source /etc/profile.d/
  28. Awesome tutorial and website!

  29. This tutorial helps me lot. Great…Thank you very much…

  30. Hi..
    I installed eclipse-sdk-4.2.1-linux-gtk-x86_64.tar.gz package on fedora14 according to steps & all steps has been work successfully but after doing all this i created a eclipse icon on desktop but when i am giving a command for running eclipse i.e eclipse(from desktop) it gives me an error i.e
    -bash: /opt/eclipse/eclipse: cannot execute binary file
    please help me for removing that error.

    • Hi Santosh,

      Could you post output of following commands:

      ls -la /opt/eclipse/eclipse
      java -version
  31. There was no trouble in installing after following the steps here. Great tutorial!! Thanks a lot!!

  32. worked like charm :) yo

  33. Thanks for the great tutorial. Very clear, easy to follow instructions. Worked perfectly.

  34. Thank You so much!

  35. Perfect ! Thank you !

  36. Excellent tutorial, thanks for the info friend.

Add Comment Register

Leave a Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


  1. Android SDK and Eclipse ADT on Fedora 13, CentOS 5.5, RHEL 5.5/6 | If Not True Then False - [...] Your Development Computer and Install Required softwares1.1 Install Sun/Oracle Java JDK/JRE1.2 Install Eclipse SDK 3.6 (Helios)2. Install Andoid SDK2.1 …
  2. Failed to execute child process "/usr/local/eclipse/eclipse" (No such file or directo - [...] check this discussion, it might [...]