Monday, December 5, 2011

Ubuntu: Update eclipse to latest version (3.7 Indigo)

For some reason Ubuntu does't include the latest version of Eclipse in the repositories. In order to install or upgrade to latest version we can do the following:

1 - Install Eclipse from repositories. It will install Eclipse 3.5 Galileo. This is the easy way to get the integration with the system: configuration, icons, launchers from the menu and this kind of staff. If you already have an old Eclipse installed and you just want to update it, skip this step.

2 - Download the latest version of eclipse from its web site. Choose the best version for you in this page http://www.eclipse.org/downloads/compare.php

3 - Unzip the downloaded file in your desktop. The folder "eclipse" contains a full installation of eclipse. You can use it directly from the desktop just by double-clicking the file named "eclipse". Now we will substitute the previous version installed via Ubuntu for this new one.

3 - Remove the old installation of eclipse. You can do a backup of the directory if you want to preserve any plugin or whatever.

#tar -zcvf ~/Desktop/eclipse.backup /usr/lib/eclipse
#sudo rm -Rf /usr/lib/eclipse

4 - Put the new installation in its place

#sudo mv ~/Desktop/eclipse /usr/lib/eclipse

5 - Change the eclipse.ini file

#sudo cp /usr/lib/eclipse/eclipse.ini /etc/eclipse.ini
#sudo mv /usr/lib/eclipse/eclipse.ini /usr/lib/eclipse/eclipse.ini.bak
#sudo ln -s /etc/eclipse.ini /usr/lib/eclipse/eclipse.ini

6 - Tune the launcher

#sudo sed -i 's:galileo:indigo:g' /usr/bin/eclipse
#sudo sed -i 's:Galileo:Indigo:g' /usr/bin/eclipse

7 - Enjoy! Your Eclipse installation is accessible from any icon or menu item you had. Check if you have to install plugins.

No comments:

Post a Comment