There are several versions of the Java Development Kit. In this exercise, we're going to install the Java SE Development Kit 6, the most up-to-date version of the JDK at the time of this writing.
Open the Synaptic Package Manager again (System | Administration | Synaptic Package Manager) and select the Development (multiverse) section on the left pane. Then locate the sun-java6-jdk package on the right pane, right-click on it and select the Mark for Installation option.
Click on the Mark button from the Mark additional required changes? dialog, and then click on the Apply button in the Synaptic Package Manager dialog:
Click on the Apply button from the Summary dialog to apply the changes you selected. The Synaptic Package Manager will start to download the Sun Java JDK 6 package.
When the downloading process is complete, the Operating System Distributor License for Java will appear. Click on the Do you agree with the DLJ license terms? box to enable it and...