Installing the latest JDK on Debian by creating a .deb package from Sun binaries
Normally we download Sun JDK installation binaries and install them. Then we configure the PATH environment variable to point to our JDK installation. But some times there will be conflicts between the native gcj and Sun JDK. So it is always better to install Sun JDK through debian repositories.
But unfortunately, the Debian repositories have Sun JDK in non-free repositories and do not always have the latest JDK.