Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install the latest version of Eclipse but the Ubuntu Software Centre contains an older version.

Is there a PPA or some other way to install latest Eclipse? Please describe the steps for full installation.

share|improve this question
Have you tried installing it fro USC? – Mitch May 31 '12 at 10:35
USC? what you mean by that ? I'm new to Ubuntu – Ant's May 31 '12 at 10:38
'Ubuntu Software Center', as shown below. I have installed Eclipse on a couple different computers using the software center method as shown - and then PyDev from inside Eclipse. Works slick. – memilanuk May 31 '12 at 16:29
@memilanuk Unfortunately if you do that you'll have to put up with a version which is almost 2 years old. – Jon Bentley Mar 18 '15 at 11:25
@Jon Bentley - you do realize this thread is almost 2 years old.... – memilanuk Mar 18 '15 at 14:36

15 Answers 15

up vote 210 down vote accepted

If you've downloaded Eclipse from their official website, follow these steps for the installation.

  1. Extract the eclipse.XX.YY.tar.gz using

    tar -zxvf eclipse.XX.YY.tar.gz
  2. Become root and Copy the extracted folder to /opt

    sudo mv eclipse.XX.YY /opt
  3. Create a desktop file and install it:

    gedit eclipse.desktop

    and copy the following to the eclipse.desktop file.

    [Desktop Entry]
    Exec=env UBUNTU_MENUPROXY=0 eclipse44
    Comment=Integrated Development Environment

    then execute the following command to automatically install it in the unity:

    sudo desktop-file-install eclipse.desktop
  4. Create a symlink in /usr/local/bin using

    sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse44
  5. For eclipse icon to be displayed in dash, eclipse icon can be added as

    sudo cp /opt/eclipse/icon.xpm /usr/share/pixmaps/eclipse.xpm
  6. Don't forget that you need to have either OpenJDK or Sun Java installed to be able to run eclipse. Check this question for more information about Java installation. Here is a simple example of installing Open JDK 1.6:

    sudo apt-get install openjdk-6-jdk
  7. Launch Eclipse and then give it the required permissions to modify the osgi file:

    sudo chown -R $USER:$USER /opt/eclipse/configuration/org.eclipse.osgi

    NB! You must launch Eclipse first, because the org.eclipse.osgi directory is created only after the first launch.

That's it.

share|improve this answer
I recommend that way, with a minor change: Use the eclipse version when creating a the symlink (eg: ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse42), and use Exec=eclipse42 at the desktop entry. That way you will be able to install multiple different versions of eclipse. – ortang May 27 '13 at 11:36
Don't forget that you need to have either OpenJDK or Sun Java installed to be able to run eclipse. Run sudo apt-get install openjdk-6-jdk or check out this link for Sun Java… – Andy Braham Oct 5 '13 at 20:06
Also worth noting that for 13.10, eclipse.desktop needs Exec=env UBUNTU_MENUPROXY=0 eclipse in order for the menus to work per – TimD Nov 25 '13 at 16:46
Works for me except /opt/eclipse/configuration/org.eclipse.osgi does not exist... – Gerhard Burger Jul 27 '14 at 9:52
@GerhardBurger It looks like the folder "/opt/eclipse/configuration/org.eclipse.osgi" does not exist until Eclipse itself is launched ... – dtmland Sep 11 '14 at 21:29
up vote 43 down vote

12.04 LTS

The preferred method:
Open Software Center -

In Ubuntu software center select Eclipse
I installed the Extensible Tool Paltform and Java IDE as well, but installing that is optional.
eclipse in software center
Enter your password in the authentication dialog.
This will get you 3.7.1 inside of a package management system.

Alternative options:

The next most preferred method
As of this moment, the eclipse-team PPA has no eclipse package for 12.04.
I'll update the answer as things develop.

When it becomes available, if you already installed via software center-
sudo add-apt-repository ppa:eclipse-team/ppa && sudo apt-get update && sudo apt-get upgrade

The least preferred method
For a portable installation you can still download directly from the Eclipse website. This gives you the ability to customize several Eclipse installations for different languages CDT, Java, and PyDev or Aptana for instance. It doesn't allow automatic updates. Installing through Software Center is always the preferred method.

I tested the portable 3.7.1 and 3.7.2 tarballs and they work just fine on 12.04 LTS.

An added disadvantage to portable installs is that you have to update your launcher if you move the folder or launch it directly.

share|improve this answer
I followed the "preferred method", but curious as to why this is more preferable than the others? – T. Webster May 25 '13 at 5:53
Search the site for questions about java apps not showing up in the app switcher and other things(reproducible problems for example). I don't have these issues when I install from repo, but people complain about them consistently when a repo install would have avoided the problem instead of requiring a cheese tray. – RobotHumans May 25 '13 at 5:56
Well the preferred method definitely installed cleanly for me. Thanks otherwise I would have chosen the messier method – T. Webster May 25 '13 at 11:31
This method is definitely easier, although I would combine it with the accepted answer's method for the launcher/desktop shortcut. – ashes999 Jun 16 '14 at 16:18
@Seanny123 The PPA hasn't been updated since before 12.04. This answer has been around for a while. – RobotHumans Oct 25 '14 at 7:06

How to install Eclipse 4.2 on Ubuntu 12.04

Since the Eclipse packages in the Ubuntu repositories are out of date, if we want to install latest releases, we are going to have to do it manually. You can just download the tar.gz file from

  1. Download Eclipse. I got eclipse-jee-juno-SR1-linux-gtk.tar.gz

  2. Extract it by executing a command line

    tar -xzf eclipse-jee-juno-SR1-linux-gtk.tar.gz

    Or with Archive Manager extraction.

  3. Move extracted eclipse folder to /opt/ folder

    mv eclipse /opt/
    sudo chown -R root:root /opt/eclipse
    sudo chmod -R +r /opt/eclipse
  4. Create an eclipse executable in your user path

    sudo touch /usr/bin/eclipse
    sudo chmod 755 /usr/bin/eclipse

    Create a file named eclipse in /usr/bin/ with your preferred editor (nano, gedit, vi...)

    Copy this into it

    export ECLIPSE_HOME="/opt/eclipse"
    $ECLIPSE_HOME/eclipse $*

    And save the file

  5. Create a Gnome menu item

    Create a file named eclipse.desktop in /usr/share/applications/ with your preferred editor (nano, gedit, vi...)

    Copy this into it

    [Desktop Entry]
    Comment=Eclipse IDE

    And save the file

  6. Launch Eclipse

    /opt/eclipse/eclipse -clean &

  7. Now you can Lock Eclipse to the launcher bar by clicking right button on Lock to Laucher

share|improve this answer
Good instructions, but I think you shouldn't chown and chmod the /opt/eclipse folder. I wasn't able to install plugins after doing that. – TomTasche Apr 30 '13 at 9:05
Like in point 3 but with the normal user? – Joe May 4 '13 at 20:30
Simply don't do anything except mv eclipse /opt/ in step 3. – TomTasche May 5 '13 at 16:39
The last line of the script file should be $ECLIPSE_HOME/eclipse "$@" not $ECLIPSE_HOME/eclipse $*. This will preserve things like arguments with spaces in them. – jbo5112 Dec 13 '13 at 21:20
You should probably use /usr/local/bin instead of /usr/bin – kzh Jun 4 '14 at 16:08

I recommend you to download directly from the eclipse website. the installation process very easy, just extract the files tar.gz, to remove it is also quite easy, simply by deleting the eclipse folder :D

share|improve this answer

From your desktop, Click on the Ubuntu Software Center enter image description here

Once it opens do a search for Eclipse

enter image description here

enter image description here

When the search is done, you will see Eclipse listed. all you have to do is click on install, sit back and relax until the installation is done.

If you still have any questions, do not hesitate to ask.

share|improve this answer
How do we install eclipse version 4.2 (SR2) with Ubuntu Software Center? It appears version 3.8 – Joe May 4 '13 at 20:26

This is the instructions copied from

How to install Eclipse IDE platform on Ubuntu 12.04 LTS Precise Pangolin

1) Open a terminal and enter the command

sudo apt-get install eclipse-platform

2) After Eclipse is installed you can install development plugins based on your needs, e.g.:

will install Java Development Tools (JDT) package for Eclipse

sudo apt-get install eclipse-jdt

will install C/C++ development tools packages for Eclipse

sudo apt-get install eclipse-cdt
share|improve this answer

Always download the packaged eclipse from their website. Its best for you to place the eclipse.tar.gz into your opt directory and create symbolic to it and use that around your system.

So if you end up upgrading in the future, all your shortcuts and links wont die.

This is the preferred setup for eclipse. IMO

share|improve this answer

I created this little script to install on a bunch of Cinnamon machines. You might have to change specific stuff for your needs but you can use this as a template for your own.

#!/usr/bin/env bash

wget -P /tmp/

tar -xzf /tmp/eclipse-standard-kepler-SR1-linux-gtk-x86_64.tar.gz -C /opt/
chown -R root: /opt/eclipse/

cat <<- 'EOF' > /usr/bin/eclipse42
    export ECLIPSE_HOME="/opt/eclipse"
    $ECLIPSE_HOME/eclipse "$@"

chmod +x /usr/bin/eclipse42

cat <<- EOF > /usr/share/applications/eclipse42.desktop
    [Desktop Entry]
    Comment=Eclipse IDE

You can now run Kepler by typing eclipse42 or wait for the menu to refresh (or enter restart) to find it there.

Feel free to comment changes you'd recommend.

share|improve this answer
You should not install something under /usr/* unless you prepare a dpk. You should install your own administrator files under /usr/local/* or /opt/NAME/*. Because for exampel /usr/bin is for the systems/distributions packages, /usr/local/bin is for administrators own files and /opt/PACKAGE/bin is for the commercial software PACKAGE. If you install in /opt/PACKAGE it is usually easiest to make a script or links in /usr/local/bin that start the program. In that way it is reachable from all users PATH. – Anders May 18 '15 at 12:27

You can use ubuntu-make to install Eclipse on Ubuntu :

Installing Ubuntu Make :

For Ubuntu 14.04 and 14.10 :

sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make

For Ubuntu 15.10 and up :

Ubuntu make is already in the official repositories.

sudo apt-get install ubuntu-make

Installing Eclipse :

umake ide eclipse

Uninstall Eclipse :

umake ide eclipse --remove
share|improve this answer
does it install latest eclipse ? – Soumyadip Das Oct 29 '15 at 9:12
"Ubuntu make is fetching always latest release version from upstream..." - Ubuntu Make Wiki ;) – hg8 Oct 29 '15 at 9:42

As with any other Eclipse version, you don't have to get it from the repositories. Just download the appropriate archive from, extract and run Eclipse.

Eclipse in the repositories is often outdated. It is usually updated every ubuntu release.

share|improve this answer
mkdir ~/opt

Change directory to the folder where your browser downloaded the Eclipse package to. Then unpack Eclipse into the opt folder:

cd {directory where your browser downloaded the package to}
tar -zxvf eclipse-jee-juno-SR1-linux-gtk.tar.gz && mv eclipse ~/opt

Make a bin folder in your home directory, this will be used for the startup script:

mkdir ~/bin

Next create an executable for Eclipe at ~/bin/eclipse with your favorite text editor by typing vi ~/bin/eclipse or nano ~/bin/eclipse into the command line. Add the following content:

export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="$HOME/opt/eclipse"
$ECLIPSE_HOME/eclipse $*

Finally, allow the script to be executed:

chmod +x ~/bin/eclipse

HINT: If you are a gtk user and experience problems with the mouse buttons you should try add an export:


to the starter file.

You can now execute that file to start up Eclipse.

share|improve this answer
You should probably move your ~/bin/eclipse to /usr/local/bin/eclipse (or with a version added)and /usr/local/bin/eclipse a link to the one you want to use). /usr/local/bin is in every users PATH, which probably is a good thing. – Anders May 18 '15 at 12:31

If you have already installed eclipse from the software center, there is an easier way.
If you haven't, do that first.

cd ~/Downloads  # (or wherever your tar.gz is)
sudo tar -xf eclipse.*.tar.gz '/opt'
sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse

Note: much of this process is just tweaked from the top answer to be easier.

share|improve this answer

If you are asking about the eclipse classic the latest version from the eclipse project is 3.7.2: and you you can download the tar ball from the website for your OS here:

The latest version in the Ubuntu Software Center is Eclipse 3.7.1; either download it from there or use the terminal with this command line:

 sudo apt-get install eclipse && sudo apt-get update

As far as a PPA? There appears to be no current or maintained PPA for eclipse classic. The PPA page at LaunchPad still exists but there has not been any activity for what appears to be two years now. You can check out the PPA page here:

The best way to install eclipse classic and the latest version 3.7.2 is from the Eclipse Classic project download page for your OS version. Warning: Eclipse 3.7.2 is built and developed for Ubuntu 10.04 LTS according to the Eclipse Project "Read Me" html documentation. There have been known "will not start issues" with later Ubuntu versions due to the compatibility of Java Runtime Enviroments; it works with JRE6 rather than JRE7. Good Luck :)

share|improve this answer

I found it very easy to install from the repository. But because that is probably an outdated version, I also went to and downloaded from there; installing that is also very easy.

What you will get today, as of june 2016, is the eclipse Mars installer. Just save the download somewhere, untar with tar xvf bla...tgz, find the biggest file, i.e. eclipse-inst, file eclipse-inst will confirm that is an executable, and run it with ./eclipse-inst.

The installer gives you a choice of several kinds of eclipse. Choose one, and go ahead. After a few minutes you will see the button Launch, and you are running the recent version of eclipse.

I did not care about the dependencies, and everything just worked. I assume that by the previous install from the ubuntu repository, the JRE etc. are taken care of.

The only thing left is that the Ubuntu menu system only knows the outdated version from the repository. To start the new version, you would have to get to the executable in the location that is mentioned by the installer during the installation of the version you chose, most probably in a directory very near to that of the installer.

The easiest way to get the new eclipse in the menu system might be to use the ubuntu package classicmenu-indicator, enable the menu for Alacarte and use that to alter the icon for Programming/Eclipse to change the path from the old version from the repository to the new version from the download.

share|improve this answer

Use the official installer (instructions).

For the Mars release, we are introducing a new Eclipse installer. This is a new and more efficient way to install Eclipse. It is a proper installer, so no more zip files, with a self extracting download that will lead you through the installation experience. For those not into installers, we still have the packages and zip files available on our download pages. -- Eclispse Downloads

share|improve this answer

protected by jokerdino Apr 25 '13 at 18:43

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.