There may have many ways to install Java on Ubuntu. However, in this example I’ll show the manual way which is download the JDK from the official website.