How to install Eclipse in Fedora

This tutorial explains installation of Eclipse open source IDE (Integrated Development Environment) in Fedora and other Linux distribution

Eclipse is a free, open source IDE (Integrated Development Environment) which supports multi-language software development. Eclipse was itself developed in Java and was initially use as Java IDE. However, Eclipse also handles PHP, COBOL, Python etc. Eclipse can also be extended with additional software components called plugins. Most of users who have just shifted to Linux from other operating system might find the software installation process tough in Linux. Here’s our complete tutorial to install and uninstall application in Fedora and in Ubuntu. Here’s a step by step guide to install Eclipse in Fedora. However, the process should work on other Linux distribution too.

Install JDK

First you need to install JDK in order for eclipse to run properly. Here’s how to install JDK in Fedora.

Download Eclipse.

Download the Eclipse. There are various packages available. Download the package i.e suitable to you and your system. If you system is 32 bit, download the 32 bit package and if your system is 62 bit, download the 62 bit package. I am installing Eclipse IDE for Java EE Developers in my 32 bit Fedora 17 machine.

Extract Eclipse package:

As a root user, extract Eclipse package in opt by using the following command:

tar -xvzf  eclipse-jee-indigo-SR2-linux-gtk.tar.gz -C /opt

Extract Eclipse

Add permissions to all files:

Add permissions to the directory and files using:

chmod -R +r /opt/eclipse

See the detail file permissions tutorial.

Make Executable on /usr/bin/ path:

Go to /usr/bin by typing following command:

cd /usr/bin

Create a file called eclipse, change permissions and add following line of codes in that file:

make eclipse executable

By doing this, you can just open Eclipse from the terminal by typing “eclipse”.

Add GUI Menu launcher:

Go to /usr/share/applications and create a file called eclipse.desktop using your favourite text editor.

Add the following content to the file and save it.

gui panel for eclipse

Now, you will be able to launch Eclipse from Menu. If you have any problem while installing Eclipse mention you problem as comment, I will get back to you instantly.

 Also see,

How to install Netbeans including Tomcat and Glassfish server in Linux

Posted in Fedora, Linux Application | Tagged , , , | 14 Comments

14 Responses to How to install Eclipse in Fedora

  1. Satish INDIA Mozilla Firefox Linux says:

    I followed exactly as described above for installtion of Eclipse on Fedora17. it still failed with the following errors. The fedora 17 is running on a 32 bit machine. will that make any difference?
    ======================== the error message screen =============
    JVM terminated. Exit code=13
    -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    -os linux
    -ws gtk
    -arch x86
    -showsplash /opt/eclipse//plugins/org.eclipse.platform_4.2.0.v201207100800/splash.bmp
    -launcher /opt/eclipse/eclipse
    -name Eclipse
    –launcher.library /opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20120522-1813/
    -startup /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    -exitdata 190019
    -vm /usr/bin/java
    -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    ========================end of the error message screen =============

    • sachit NEPAL Google Chrome Linux says:

      @Satish: This error is caused by Java Virtual Machine(JVM). The JVM version installed in your system must be compatible for the version of Eclipse you are going to install. Install the required JVM version for the version of your Eclipse you are going to install.

  2. Quoc VIET NAM Mozilla Firefox Linux says:

    I have a problem when opening eclipse
    [Quoc-pc@Quoc ~]$ eclipse
    bash: /usr/bin/eclipse: Permission denied
    [Quoc-pc@Quoc ~]$

  3. matt UNITED STATES Mozilla Firefox Linux says:

    I am installing Eclipse on KDE desktop and cannot open the application via the GUI menu launcher. I created the eclipse.desktop file and entered the its contents per this turorial. I do see an eclipse icon but it does not open. Should the eclipse.desktop file be altered for KDE?

    I am able to open the app via the command line w/o any issues.

    • matt UNITED STATES Mozilla Firefox Linux says:

      I figured out the problem and am now able to open Eclipse from the desktop.
      Adding the absolute path to the “EXEC” line in the eclipse.desktop file.

  4. deepak Mozilla Firefox Fedora Linux says:

    I want to install eclipse from yum command for fedora-13 but it could not find the package try many mirror image failed at the last.
    Give me your suggestion .

  5. Uyen Pham VIET NAM Google Chrome Linux says:

    Please anyone help!

    I am using Fedora 16 i686, and I have just installed Eclipse Juno 4.2 (32 bit) packages. When I tried to run my source code with Eclipse, the result is nothing except [Java Application] /usr/lib/jvm/java-1.6.0-openjdk-

    I guess this is due to the incompatibility btw the Eclipse and JVM.

    However, I don´t know how to check which JVM version is suitable for my installed Eclipse.

    If anyone knows this, please kindly share.

    I am looking forward to your advice. Thanks!

  6. Francesco ITALY Google Chrome Linux says:

    I followed exactly as described (I run Fedora 17, 64bit). I do can launch Eclipse 4.2 from terminal with the command $ eclipse, everything is working fine. However there is no such application in the GUI. If I type “ecl” in the bar of Gnome Shell I don’t see any matching application.
    I tried to write the absolute path (first with “Exec=/opt/eclipse/eclipse”, then with “Exec=/usr/bin/eclipse”) in /usr/share/applications/eclipse.desktop, but with no results. If I type the same paths (“/opt/eclipse/eclipse” or “/usr/bin/eclipse” or “eclipse”) in the terminal, Eclipse starts with no problems.
    Then why can’t I see any application called Eclipse? (Yes, Name=Eclipse in /usr/share/applications/eclipse.desktop).
    Thanks :)

    • Francesco ITALY Google Chrome Linux says:

      Whoa. Nevermind, it works now, but I’m quite confused now.
      All I had to do was to delete some blank spaces at the end of the rows in /usr/share/applications/eclipse.desktop.
      For example:


      This is odd. I have to say I’m still a Linux newbie, but I don’t think these kinds of things are normal, are they?

  7. Parth UNITED STATES Google Chrome Linux says:

    Dude I like the posts and the level of detail (using example commands) for each one.

Leave a Reply

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>