These are some note on how to integrate Sun's J2SE SDK with Debian Testing. First read the FAQ. Next are some faster steps, commands are to be typed as root:
apt-get install equivs cd /tmp apt-get source java-common cd java-common-022/dummy for i in *.control; do equivs-build $i; done dpkg -i *.deb
The exemple on the FAQ only registers the javacommand. They are many
more programs in the SDK such as javadoc, jar, jdb, etc... Use my
script to register all Java commands on Debian. You will need to edit
the variable jsdkto point to the path of your Java SDK.