But is the best way to install extra software useing yum or a rpm?
Well, this is not a contrib, it is a how to. Anyway, java have a restricted license that does not allow avoid it, and package it into a rpm. It is necessary to download manually from sun and accept the license agreement.
(I hope not to be punished again for my suggestion...)