The instructions below are for installing version Java 8 Update 73 (8u73). If you are installing another version, make sure you change the version number appropriately when you type the commands at the terminal
Example: For Java 8u79 replace 8u73 with 8u79
Note that, as in the preceding example, the version number is sometimes preceded with the letter 'u' and sometimes it is preceded with an underbar, for example jre1.8.0_73
1. Become root by running su and entering super-user password
2. Change to the directory in which you want to install. Type:
cd directory_path_name