Note: The following instructions are only for i386 and amd64 computers. For PowerPC machines, please look at the Ubuntu Wiki.
-
To install the Java Runtime Environment (to run java programs), install the sun-java5-jre package from the Multiverse repository (see the section called "Extra Repositories").
-
To install the Java Development Kit (to compile java programs), install the sun-java5-jdk package from the Multiverse repository (see the section called "Extra Repositories").
-
To choose which java installation you want to use, run:
sudo update-alternatives --config java
and pick the option which you prefer.
* License

