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.
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.
If you've downloaded Eclipse from their official website, follow these steps for the installation.
Extract the eclipse.XX.YY.tar.gz using
Become root and Copy the extracted folder to
/opt
Create a desktop file and install it:
and copy the following to the
eclipse.desktop
fileand make sure that it has executable permission, then execute the following command to automatically install it in the unity:
Create a symlink in
/usr/local/bin
usingFor eclipse icon to be displayed in dash, eclipse icon can be added as
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:
Launch Eclipse and then give it the required permissions to modify the osgi file:
NB! You must launch Eclipse first, because the org.eclipse.osgi directory is created only after the first launch.
That's it.
The preferred method: Software Center
In Ubuntu software center select Eclipse. I installed the Extensible Tool Platform and Java IDE as well, but installing that is optional.
Enter your password in the authentication dialog. This will get you 3.7.1 inside of a package management system.
The least preferred method: Portable
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 tar balls 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.
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 eclipse.org.
Download Eclipse. I got
eclipse-jee-juno-SR1-linux-gtk.tar.gz
Extract it by executing a command line
Or with Archive Manager extraction.
Move extracted eclipse folder to
/opt/ folder
Create an eclipse executable in your user path
Create a file named
eclipse
in/usr/bin/
with your preferred editor (nano
,gedit
,vi
...)Copy this into it
And save the file
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
And save the file
Launch Eclipse
/opt/eclipse/eclipse -clean &
Now you can Lock Eclipse to the launcher bar by clicking right button on Lock to Laucher
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
From your desktop, Click on the Ubuntu Software Center
Once it opens do a search for Eclipse
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.
This is the instructions copied from http://www.inforbiro.com/blog-eng/ubuntu-12-04-eclipse-installation/
How to install Eclipse IDE platform on Ubuntu 12.04 LTS Precise Pangolin
1) Open a terminal and enter the command
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
will install C/C++ development tools packages for Eclipse
You can use
ubuntu-make
to install Eclipse on Ubuntu :Installing Ubuntu Make :
For Ubuntu 14.04 LTS :
For Ubuntu 16.04 LTS and newer :
Ubuntu make is already in the official repositories.
Installing Eclipse :
Uninstall Eclipse :
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
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.
You can now run Kepler by typing
eclipse42
or wait for the menu to refresh (or enterr
estart) to find it there.Feel free to comment changes you'd recommend.
As with any other Eclipse version, you don't have to get it from the repositories. Just download the appropriate archive from eclipse.org, extract and run Eclipse.
Eclipse in the repositories is often outdated. It is usually updated every ubuntu release.