I. install Java 6 install jre/jdksudoapt-getinstallsun-java6-binsun-java6-jresun-java6-jdk after using this command to install, the default is installed in Ubuntu10.10/usr/lib/jvm/directory, take me as an example, here is the/usr/lib/jvm/java-6-sun-1.6.0.24 directory,/usr/lib/jv
1. install Java 6
Install jre/jdk
Sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
After you use this command to install it, it is installed in the/usr/lib/jvm/directory of Ubuntu 10.10 by default. Take me as an example, here is the/usr/lib/jvm/java-6-sun-1.6.0.24 directory, and/usr/lib/jvm/has a shortcut for java-6-sun.
Sometimes multiple jdk is installed, and sometimes switch between them. You can use the following command:
Sudo update-alternatives-config java
Sudo update-alternatives-config javac
For command line configuration, see:
JDK building http://www.linuxidc.com/Linux/2011-04/34364.htm under Ubuntu
Ubuntu java environment variablesHttp://www.linuxidc.com/Linux/2011-04/34365.htm
Ii. Install Eclipse
Open Application-Ubuntu Software Center
Search for Eclipse download and Installation
Open Application-Programming-Eclipse
Work folder settings, default, click OK