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.
- Run the script, like this:
bash <(wget -qO- https://gist.github.com/raw/1071034/install-eclipse.sh)
When prompted, find the URL of the Eclipse Linux gzipped tarball you want to install from the Eclipse website.
- Note: The link that you want has text that looks like [Australia] Australian Academic Research Network (http) - right click this and choose Copy Link Address to get the URL the script wants.
- The script will install OpenJDK1, download Eclipse, patch the icon so it looks less ugly, and put all of the right files in the right places.
In my experience, Eclipse (particularly CDT) has been more stable under OpenJDK than the Sun JRE, even though Eclipse recommends it.↩