apt-get install java
By Calum-Oracle on May 16, 2006
From now on, that's pretty much all you'll need to do to install the latest JRE/JDK on your Linux box1... Sun have just changed the way they license Java binaries to Linux (and OpenSolaris) distros. Debian, Ubuntu and Gentoo are already taking advantage of this, along with NexentaOS, BeleniX, and SchilliX on the OpenSolaris front. Read the DLJ FAQ, or get more info at the jds-distros project website.
1 Ok, actually it's apt-get install sun-java5-[jre|jdk]