How to Install The Latest Eclipse Release in Ubuntu 14.04

install Eclipse Ubuntu

This quick tutorial is going to show you how to install the latest release of Eclipse, while the Ubuntu repositories has an very old version.

So far, the latest is Eclipse Kepler (4.3.2). You can follow below steps to install it on Ubuntu 14.04 or other Ubuntu releases.

[ac-box style=”tip”]This tutorial does no longer work since Eclipse Installer was rolled out, you may follow the new how-to-install[/ac-box]
1. Install Java.

If you don’t have Java installed on your system. Click the link below to bring up Ubuntu Software Center and click install OpenJDK Java 7:

[ac-button size=”large” color=”blue” url=”apt://openjdk-7-jre”]Click Install OpenJDK java 7[/ac-button]

Or, install Oracle Java from this link.

2. Download Eclipse from its website

You may check out your OS Type 32-bit or 64-bit by going to System Settings -> Details -> Overview

3. Extract Eclipse to /opt/ for global use

Press Ctrl+Alt+T on keyboard to open the terminal. When it opens, run the command below to extract Eclipse to /opt/:

cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz

You may replace “eclipse-*.tar.gz” (without quote) to the exact package name if the command does not work.

Don’t like Linux commands? You can do this by opening Nautilus file browser via root: Press Alt+F2 -> run gksudo nautilus.

Once done, you should see the eclipse folder under /opt/ directory.

4. Create a launcher shortcut for Eclipse

Press Ctrl+Alt+T, paste below command into the terminal and hit enter (install gksu from Software Center if below command does not work).

gksudo gedit /usr/share/applications/eclipse.desktop

Above command will create and open the launcher file for eclipse with gedit text editor.

Paste below content into the opened file and save it.

[Desktop Entry]
Name=Eclipse 4
Comment=Integrated Development Environment

Finally open Eclipse from Unity Dash search results and enjoy!

Not clear enough? See the youtube video:

By Ji m

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to remind me outdated tutorial! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via Buy me a coffee:


  1. I must admit that I’m having a problem– whenever I open eclipse, it shows the title screen and then the window goes white. To my knowledge I cannot find an error for it, it simply stops. Any ideas on why?

  2. Wow ! That was quick and easiest way I have installed eclipse on linux. Thank you. Somehow software center has outdated version.

  3. Thanks, very useful.
    But for me the launcher location must to be .local/share/applications/eclipse.desktop

  4. when i run this cd /opt/ && sudo tar -zxvf ~/Downloads/eclipse-*.tar.gz. it’s always show gzip: stdin: unexpected end of file
    tar: Unexpected EOF in archive
    tar: Unexpected EOF in archive
    tar: Error is not recoverable: exiting now ?
    can you help?

    1. The error output tells you that the package you downloaded is not complete. Remove it, and download again.

  5. I have used your method but when I start eclipse it hangs after splash screen. I am using 64bit ubuntu 14.04 and eclipse 4.4.

    som@SOM-PC:~$ java -version
    java version “1.8.0_20”
    Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
    Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

    som@SOM-PC:~$ /opt/eclipse/eclipse -consoleLog -debug
    Start VM: /usr/bin/java
    -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash /opt/eclipse//plugins/org.eclipse.platform_4.4.0.v20140606-1215/splash.bmp
    -launcher /opt/eclipse/eclipse
    -name Eclipse
    –launcher.library /opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/
    -startup /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -exitdata b48018
    -product org.eclipse.epp.package.cpp.product
    -vm /usr/bin/java
    -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
    Install location:
    Configuration file:
    file:/opt/eclipse/configuration/config.ini loaded
    Configuration location:
    Configuration file:
    file:/home/som/.eclipse/org.eclipse.platform_4.4.0_1473617060_linux_gtk_x86_64/configuration/config.ini loaded
    Loading timestamp file from:
    file:/home/som/.eclipse/org.eclipse.platform_4.4.0_1473617060_linux_gtk_x86_64/configuration/ .baseConfigIniTimestamp
    No timestamp file found
    Timestamps found:
    config.ini in the base: 1402558123000
    remembered -1
    Shared configuration location:
    Framework located:
    Loading extension: reference:file:org.eclipse.osgi.compatibility.state_1.0.0.v20140403-1907.jar not found
    Framework classpath:
    Splash location:
    Debug options:
    file:/home/som/.options not found
    Time to load bundles: 8
    Starting application: 2985

    after that nothing happens. please help.

  6. Hi! Congratulations for this post, it’s very useful. But I have a bit problem, when I try put “gksudo gedit /usr/share/applications/eclipse.desktop” in the box and I press Enter, my system do anything. I dont know it can be. Who know it?
    Thanks you.

    1. Very sorry for that, I found that many readers don’t know how to use the Alt+F2 box. I have updated the step 4, please run the command in a terminal window instead.

    1. Just remove the .desktop file and eclipse folder under /opt/. You need to open your file browser with root to do that.

  7. I have used your provided method in Ubuntu 14.04 with JDK1.8.0_20 and Eclipse Luna for php development. I found following error when starting eclipse:

    JVM terminated. Exit code=1
    -vm /usr/bin/java
    -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash /usr/local/eclipse//plugins/org.eclipse.platform_4.4.0.v20140925-0400/splash.bmp
    -launcher /usr/local/eclipse/eclipse
    -name Eclipse
    –launcher.library /usr/local/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326/
    -startup /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -exitdata 67800f
    -product org.eclipse.epp.package.php.product
    -vm /usr/bin/java
    -vm /usr/bin/java
    -jar /usr/local/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar

    Please help

  8. Awesome job you did here mate!

    Last time I installed Eclipse by myself and ended up with a somehow working software only after a couple hours of work, and this time i got it smoothly in a matter of minutes. Many thanks for that.

    On my way to add ocaIDE and C stuff now… urg!

  9. Just awesome! Thanks!
    You may add how to install Eclipse for C/C++, run this command in terminal: sudo apt-get install build-essential
    This will install the necessary C/C++ development libraries

    1. Make sure that eclipse downloaded is of correct bit. I also had the same issue. My ubuntu was 32 bit. But I downloaded 64 bit eclipse.

      cd /opt/eclipse

      Check does it show and error in the console.

      You can know your ubuntu type from

      System Settings > Details

      Make sure it matches with your eclipse.

  10. Thanks Ji.

    Very neat.

    Some things that I had to watch out for:
    1. I have an office machine. It has an i3 processor, so I downloaded the 64 bit java and eclipse. When java -version command choked, I checked uname -m and System Settings -> Details -> Overview. The machine has been loaded with a 32-bit Ubuntu:-)
    2. Since eclipse is in /opt/eclipse folder I needed to create a soft link to that in /usr/bin


  11. Eclipse launches with no problems at all but then the top menu (File, Help, …) doesn’t work, the submenus don’t drop. Do you know how to fix this problem?

  12. I get this error when launching eclipse

    VM terminated. Exit code=13
    -jar /opt/adt-bundle-linux-x86_64-20140702/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    -os linux
    -ws gtk
    -arch x86_64
    -showsplash /opt/adt-bundle-linux-x86_64-20140702/eclipse//plugins/org.eclipse.platform_4.2.2.v201302041200/splash.bmp
    -launcher /opt/adt-bundle-linux-x86_64-20140702/eclipse/eclipse
    -name Eclipse
    –launcher.library /opt/adt-bundle-linux-x86_64-20140702/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807/
    -startup /opt/adt-bundle-linux-x86_64-20140702/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    -exitdata 30800f
    -vm /usr/bin/java
    -jar /opt/adt-bundle-linux-x86_64-20140702/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

    Please help

    1. go to /opt/eclipse

      and type” sudo apt-get install eclipse-platform ”

      at least, it works for me

  13. Just a litte addition.
    Your instructions are very good – but: You should add that you add a user group eclipse and give the folder /opt/eclipse to this user group. And set the chmod for read and write. With your instructions you can’t add any plugins to your installation of Eclipse!

  14. I followed the exact same steps . I see the eclipse icon in Unity Dash search . But it won’t open. Please help

  15. Thanks,

    However, I ran into a problem on my machine where the installing java step failed due to a locked directory. By deleting the lock file, I was able to finish up successfully.

    > sudo apt-get install oracle-java7-installer
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    The following packages were automatically installed and are no longer required:
    libquvi-scripts libquvi7 printer-driver-hpijs unity-2d-shell
    Use ‘apt-get autoremove’ to remove them.
    The following extra packages will be installed:
    Suggested packages:
    visualvm ttf-kochi-gothic ttf-sazanami-gothic ttf-kochi-mincho
    ttf-sazanami-mincho ttf-arphic-uming
    The following NEW packages will be installed:
    gsfonts-x11 oracle-java7-installer
    0 upgraded, 2 newly installed, 0 to remove and 368 not upgraded.
    1 not fully installed or removed.
    E: Could not get lock /var/cache/apt/archives/lock – open (11: Resource temporarily unavailable)
    E: Unable to lock directory /var/cache/apt/archives/

    > sudo rm /var/cache/apt/archives/lock

  16. Hi Ji, I followed your steps for install once extracted the tar file and put it in into the opt folder. When I right click and click the run option, the application doesn’t run anything. I am using ubuntu gnome version. Kindly help.


    1. Open a terminal and run below command to start Eclipse from command line:


      The output will tell you what’s going wrong.

      1. It says no such file or directory but I can see it in folder view + even when I cd /opt/eclipse and ls I can see eclipse there

  17. Thanks for the tutorial, it is great. But I have one problem. It starts loading Eclipse Luna and after a second it shows ‘please see the log file’.

    And this is in the log file:
    java.vendor=Oracle Corporation
    BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
    Framework arguments: -product
    Command-line arguments: -os linux -ws gtk -arch x86_64 -product

    !ENTRY org.eclipse.osgi 4 0 2015-01-22 19:10:20.559
    !MESSAGE Application error
    !STACK 1
    java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.eclipse.equinox.launcher.Main.invokeFramework(
    at org.eclipse.equinox.launcher.Main.basicRun(
    at org.eclipse.equinox.launcher.Main.main(

    Please help

  18. It will be better if you symbolically link the eclipse binary to the /usr/bin/eclipse
    sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse

    by doing this you can access eclipse from terminal by typing eclipse

  19. I followed these very clear instructions, and install of Luna seemed to work. However, it then tried to install a lot of plugins, and failed because it couldn’t find the eclipse repository. Error message:

    No repository found at ‘’

    “Update” fails on the same message.

    The Eclipse web site reports that there is a repository at

    However, Ubuntu Software Center won’t let me add that repository either as deb or source.

    What do I do now?

  20. I think I got it. I unchecked the incorrect repository from “Available software sites” and then the update proceeded without a hitch.

  21. Dear Ji,
    I did step by step from your tutorial. The only problem is step 4. When I enter gedit and paste, “Development” is mark with the red color. I’m new to the Ubuntu and I have 14.04.02 version. Also I have another problem with installing new software in Eclipse. When everything is done, just crashes at half of loading bar.
    Thank you for answer.

  22. Thank u ji m. The tutorial is very esay and first time i have install something manually(without software center).

  23. Hi,

    I get this all running (Ubuntu 14.10 64bit, Eclipse Luna). But if I want to install new software (over eclipse) I go to a valid Site and press enter. Now there should be some entries in the list below. But I cannot read them. I now they are there, ’cause I can select them with the select all button.

    Can you help me?

  24. Very Clear tutorial. Worked perfectly on Ubuntu 14.04 (32bits). Installed Eclipse Luna SR2.
    Many Thanks !

  25. i am using eclipse 3.8 to run adobe flex builder in ubuntu 14.04 server.but frequntly eclipse crashing. I am new for eclipse. plz any one help me to solve this problem.

  26. The launcher icon method above didn’t work for me some reason. The alternative way is to type the following command in the terminal

    sudo cp /yourEclipseFolder/icon.xpm /usr/share/pixmaps/eclipse.xpm

    In case someone else is having the same issue :)

  27. I would suggest that you untar Eclipse under /opt (for optional software not delivered by the Distribution). There you rename it like /opt/eclipse-lunar

    mv /opt/eclipse /opt/eclipse-lunar

    Install Java SDK.

    apt-get install openjdk-7-sdk openjdk-7-source openjdk-7-demo

    Go to /usr/local/bin and create a script that starts the right version of Eclipse. You could even have Ubuntus own Eclipse installation installed in parallell:

    apt-get install eclipse # you might want to run aptitude and select eclipse-wsp etc.

    cat </usr/local/bin/eclipse-lunar
    export ECLIPSE_HOME=/opt/eclipse-lunar
    \$ECLIPSE_HOME/eclipse “\$@”
    # eof
    chmod +x /usr/local/bin/eclipse-lunar

    You make a eclipse-lunar.desktop, not eclipse.desktop, because then you can have many different versions installed.

    cat <~/eclipse-lunar.desktop
    [Desktop Entry]
    Name=Eclipse Lunar
    Exec=env UBUNTU_MENUPROXY=0 eclipse-lunar
    Comment=Integrated Development Environment
    Name[en]=Eclipse Lunar
    desktop-file-install ~/eclipse-lunar.desktop

    Now you can have Eclipse installed in parallell with other installations of Eclipse.

    For minimal problems, do remember to use different workspaces depending on which version of Eclipse you run, I usually have the prefix ws-lunar- on each workspace.

    Now each user on your machine can use Eclipse Lunar.

  28. Thank you for giving this article . i help me so much . please upload more article for ubuntu

  29. (gedit:3241): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    I am getting this error. Please help

  30. information is very useful…… adding one more thing.. if anyone have issue in following the steps,, after downloading please take a md5sum of the downloaded tar and compare it with the portal one…
    how to take md5sum:
    md5sum ~/Downloads/eclipse-jee-mars-R-linux-gtk-x86_64.tar.gz
    check whether its result is 30e2e666064f2ed32979e874a8c9cd81… if not your download is not complete. you again have to download…
    If this number is same,, you will not have any issue in following the steps

  31. Ji m, since you have been using ubuntu for the past five years, have you come across the windows builder pro problem within the IDE where t displays incorrectly and you have to click slightly above or below an element to actually locate it? If so, how did you solve this issue? I have moved from mars to kepler to Luna and all have the same issue! Thanks

  32. Thanks a lot for explaining clearly each step. It did work well for me.
    Awesome work. :)

  33. Hi! So far the best instruction I found. Thank you so much and please make more tutorials. You are great!!

  34. gksudo gedit /usr/share/applications/eclipse.desktop

    This command is not working for my Linux. Actually, in opt folder, the two folders ‘Eclipse’ and ‘google’ have been created. But when I run the above mentioned command, it says that command not found: gksudo.

    How can I get to know the right path for my opt folder so that the above command might work for me? Does the path have something to do with the execution of this command??

    Thanking you in anticipation,


  35. Thank you for this guide!

    I installed Luna on a 32-bit system but nothing happens when I go to launch it. The command /opt/eclipse/eclipse gives me:

    OpenJDK 64-Bit Server VM warning: You have loaded library /opt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20150204-1316/ which might have disabled stack guard. The VM will try to fix the stack guard now.
    It’s highly recommended that you fix the library with ‘execstack -c ‘, or link it with ‘-z noexecstack’.
    org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
    JVM terminated. Exit code=13
    -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -os linux
    -ws gtk
    -arch x86
    -showsplash /opt/eclipse//plugins/org.eclipse.platform_4.4.2.v20150204-1700/splash.bmp
    -launcher /opt/eclipse/eclipse
    -name Eclipse
    –launcher.library /opt/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.1.200.v20150204-1316/
    -startup /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
    -exitdata 4e800d
    -vm /usr/bin/java
    -jar /opt/eclipse//plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar

  36. After following all the above mentioned steps, I encounter the message described below. Kindly help me out to resolve the issue.

    Failed to execute child process /opt/eclipse/eclipse No such file or directory

  37. Hey,

    Thanks for this update, i installed the latest eclipse-php-mars on my ubuntu 14.04 but php support is grayed out for all my projects, new or old.
    Do you got any idea how to fix this, configure a path to php, or user rights?

    1. This has changed now, when you extract it you get an eclipse-installer folder. CD into the folder and run ./eclipse-inst

  38. I can’t figure this out… when I extract the tar file then it gives me a normal folder called eclipse-installer. This file will not run, I’ve tried everything. It says it can not locate the JDK. Somehow if I can figure out how to run this, then I might be able to get to the next folder called eclipse… I’m baffled

  39. I installed eclipse the way you have told above, but i dont like it and want to remove it, how can i remove it.. please always also mention the procedure to unstall the same software. thanks

Comments are closed.

Exit mobile version