Here's a short shell script to quickly install the latest Eclipse in Ubuntu, since the one in the repositories is about two years old. As a bonus, it also replaces the ugly Eclipse icon with a nicer one by Shaun Smith. Based on these instructions.
- Copy the URL to
install-eclipse.sh
using the raw link to the top right of that file's listing. - Run the script, like
wget https://gist.github.com/raw/.../install-eclipse.sh -O- | sudo bash
- When prompted, find the Eclipse Linux gzipped tarball you want to install from the Eclipse website.
- The script will install OpenJDK [1], download Eclipse, patch the icon so it looks less ugly, and put all of the right files in the right places.
[1] | In my experience, Eclipse (particularly CDT) has been more stable under OpenJDK than the Sun JRE, even though Eclipse recommends it. |