Ubuntu does not have rpm installer in it. It uses deb package manager derived from debian. Find a deb package for JDK or convert your rpm to deb using "Alien" program, check
instructions here[
^].
[EDIT] Check this
link[
^]; It has ubuntu JDK 6 package [/EDIT]