Recently I needed to install Oracles java, and not the open source java for android development. Oracle do not allow Conical to distribute java with Ubuntu distributions. So you need to add the Oracle repositories after your Ubuntu installation. below shown is a example of how it done.
You need to add the Oracle repository to your Ubuntu installation.
You now need to update your repository database.
Now you can add the Oracle Java repositories.
Thats all its done.