In the Debian GNU/Linux Java FAQ, chapter 11 has a segment on using Sun's jdk. I would suspect that it works the same in Ubuntu, but I haven't tried it yet. It may require installing things from the Universe, but again, I haven't tried it yet. Link to the faq: http://www.debian.org/doc/manuals/debian-java-faq/ch11.html#s11.2