1. Open Terminal, I haven't used Ubuntu's Unity so I don't know in which particular menu you will find it. You'll probably find it easily though.
2. Eclipse is already available as a package in Ubuntu 10.4+. But if it doesn't exist run the follow command in terminal: sudo apt-get install eclipse
3. Type & Press Enter: sudo apt-get install eclipse sun-java6-jdk
4. Type & Press Enter: sudo update-java-alternatives -s java-6-sun
5. Type & Press Enter: sudo -b gedit /etc/jvm
6. Add the following line to the top of the file - /usr/lib/jvm/java-6-sun
7. To ensure that the change has happened, open Eclipse and click on Help -> About Eclipse SDK -> Installation Details -> Configuration and look for this line:
Quote:
[...]
-vm
/usr/lib/jvm/java-6-sun/bin/java
[...]
|
For a much more detailed explanation refer to -
https://help.ubuntu.com/community/EclipseIDE