
In case you don't know which Java version to use, you should stick to the default OpenJDK version available on Ubuntu 18.04. JDK on the other hand includes development/debugging tools and libraries which is suitable for Java developers. JRE consists only of the Java Runtime Environment, which is apt for running Java programs.

Ubuntu repositories have two different Java packages: Java Runtime Environment (JRE), and the Java Development Kit (JDK). These are almost similar to one another except for the fact that Oracle Java has a few additional commercial features. The two main implementations of Java are OpenJDK and Oracle Java. Here we will proceed with installing the Java SE (Standard Edition). Java has three different editions which are distributed: The Standard Edition (SE), The Enterprise Edition (EE), and The Micro Edition (ME). You need to be logged in as a user with sudo privileges in order to successfully complete this tutorial. We will also address some of the FAQs related to the Java installation. You can follow the same guidelines for Ubuntu 16.04 and other Ubuntu-based distribution, including Kubuntu, Linux Mint, and Elementary OS.

In this tutorial, you will install OpenJDK and Oracle Java on Ubuntu 18.04. It is used to build various cross-platform applications. Java is the most extensively used programming language in the world. Choose a different version or distribution Introductionīefore we begin talking about how to install Java on Ubuntu 18.04, let’s briefly understand - What is Java?
