Ubuntu has the official policy of not including anything not within the
category of open freeware. Sun has some proprietary routines in the version
on their website, which increase the functionality. The version in the
repositories is absolutely free of any such "non-free" components. It's your
choice which way you want to go... both work, but the repository version has
some limitations.