It’s really simple to update Java on Ubuntu – just 2 simple commands.
While you’re using PPA as I described in the installation chapter you can execute update and upgrade commands in the console and that’s it.
Open Terminal (Alt+Ctrl+T) and execute:
| || |
sudo apt-get update
sudo apt-get upgrade
If a new version of Java is available it will be automatically updated.