Why not just download the official Sun Java installer?
http://java.com/en/download/manual.jsp Brian Weeden wrote:
I have version 1.42 installed now but I am trying to get GCALDaemon to work so I can sync with Google Calendar and it says I need Java version 1.5 or later. Through all the normal distro channels all I can find is 1.4x. Is there a more recent version for ubuntu (debian) and does someone have a download link?