Sometimes, even after installing, the java -version command in the terminal still shows the old version. This happens if you installed a "Portable" version or if the environment variables are messed up. Here is how to fix it:

You should now see the new version number.

If you get 'java' is not recognized , Java is either not installed or not in your system PATH.