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

Eclipse LogoThis is guide, howto install latest Eclipse SDK 4.3.2 (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.2 (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.2 (Kepler)

Download suitable version from www.eclipse.org/downloads. This guide uses Eclipse Classic 4.3.2 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 ##
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
 
$ECLIPSE_HOME/eclipse $*

7. Create Gnome desktop launcher

## Create following file, with our favourite editor ##
/usr/share/applications/eclipse.desktop
 
## Add following content to file and save ##
[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

8. Start Eclipse 4.3.2

From command line use eclipse command

eclipse

From Desktop menu Gnome 3 Eclipse 4.3.2
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

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:

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

and try again.

Follow If Not True Then False Updates!

153 Comments

  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?
    Thanks
    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:

      /opt/eclipse/eclipse

      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

      “Exec=/path/to/your/eclipse_package/eclipse”.

  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
    libc.so.6(GLIBC_2.14)(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libcairo-gobject.so.2()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libdevhelp-3.so.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libgda-4.0.so.4()(64bit) 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
    libgdk-3.so.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libgdl-3.so.1()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libgladeui-2.so.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libgtk-3.so.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libgtksourceview-3.0.so.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libpython2.7.so.1.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libstdc++.so.6(GLIBCXX_3.4.15)(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libvala-0.14.so.0()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libvte2_90.so.9()(64bit) is needed by anjuta-1:3.2.0-1.fc16.x86_64
    libwebkitgtk-3.0.so.0()(64bit) 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
      ================================================================================
      Installing:
       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      1.7.7.6-1.fc16           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      1.7.7.6-1.fc16           updates       40 k
       sqlite-devel           x86_64      3.7.7.1-1.fc16           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!

  7. I GOT THIS ERROR AFTER INSTALLING ECLIPSE IN THE SAME WAY U TOLD.

    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

    Thanks

  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 libcairo-swt.so
    -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]
    Encoding=UTF-8
    Name=Eclipse
    Comment=Eclipse SDK 4.2
    Exec=/bin/sh "/opt/eclipse/eclipse"
    Icon=/opt/eclipse/icon.xpm
    Categories=Development;
    Version=1.0
    Type=Application
    Terminal=false

    • Hi thorty,

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

      [Desktop Entry]
      Encoding=UTF-8
      Name=Eclipse
      Comment=Eclipse SDK 4.2.1
      Exec=eclipse
      Icon=/opt/eclipse/icon.xpm
      Terminal=false
      Type=Application
      Categories=GNOME;Application;Development;
      StartupNotify=true
  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]
    Encoding=UTF-8
    Name=Eclipse
    Comment=Eclipse SDK 4.2.1
    Exec=eclipse
    Icon=/home/armando/eclipse/icon.xpm
    Terminal=false
    Type=Application
    Categories=GNOME;Application;Development;
    StartupNotify=true

    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.

        Thanks.

        • 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:
          /etc/profile.d/my_eclipse_plugin.sh

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

          export TMP_VARIABLE=/tmp

          3. Then reboot your system or try:

          source /etc/profile.d/my_eclipse_plugin.sh
  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.

  37. Followed your instructions, and Eclipse started and ran, both from the command line and from the Applications page. I’ve installed Fedora 16 on and old Dell D620 laptop to replace a Windows laptop that was stolen while on the road. Even though the Dell is an old computer, no problems so far with the install.

    Thanks for your great instructions!

  38. Thank you very much! Very good tutorial.
    Good point to change the right in read and right for /opt/eclipse
    Very happy to create for my first time a desktop link with gnome ;)

  39. 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….

  40. 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 .

    • Hi jules,

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

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

    • Hi Mriyam,

      You could remove Eclipse using following commands:

      ## Remove Eclipse launcher ##
      rm /usr/share/applications/eclipse.desktop
       
      ## Remove Eclipse executable ##
      rm /usr/bin/eclipse
       
      ## Remove Eclipse Path ##
      rm -rf /opt/eclipse

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

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>

Trackbacks/Pingbacks

  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 [...]