Tuesday, February 12, 2008

Ubuntu + Eclipse 3.3 (Europa)

When using

> sudo apt-get install eclipse

there are several problems. Firstly, eclipse doesn't inherently use Sun's Java. This results in a "slow Eclipse". Secondly, using this command gives you Eclipse 3.2, not 3.3.

So, this is what I did:

Download Eclipse 3.3 straight from the Eclipse website (I got the classic version). Extract the tarball, and you have a working, standalone Eclipse 3.3.

However, it is not integrated into Ubuntu and it's still not using Sun's Java. Follow the instructions from the first post of this thread.

Eclipse should now be integrated into Ubuntu, but this is still version 3.2.

We will now overwrite 3.2 with our downloaded 3.3:

>sudo cp -R ~/Desktop/eclipse/* /usr/lib/eclipse/

Now that we have 3.3 installed and integrated into Ubuntu, there is one more step to do. When doing software updates, Eclipse needs to create and install new files. This can be troublesome with the wrong permissions. I went through a number of hacks, none of which worked, so I finally settled for opening up all permissions in the Eclipse install directory:

>sudo chmod 777 -R /usr/lib/eclipse

Voila! After this is complete, you may start to use Eclipse and install other plugins.


W

No comments: