The Java Runtime Environment (JRE) is required to run Java programs. While there are multiple JRE variants available, the two most popular ones on Ubuntu are OpenJRE and Oracle JRE. Using one over the other should not create any functional difference in most applications, however, some prefer OpenJRE over Oracle JRE as it doesn’t contain closed-source components and is maintained as part of the Ubuntu archive, with easier installation and upgrades.
In this guide, we’ll be going through the installation of both of them. Of course, you generally only need to pick the one that best suits your needs.
What you’ll learn
- How to install OpenJRE
- How to install Oracle JRE
What you’ll need
- A machine running Ubuntu 16.04 LTS
That’s all you need. If you have that, let’s proceed to the next step!