what I did to get java installed correctly was download the *.bin file, and 'apt-get install java-package'. then you can
$ fakeroot make-jpkg <whatever the long name is>.bin
This makes a .deb file, and you can just
dpkg -i <whatever the name is>.deb
to install it. It worked really well.