How to install the JDK on Ubuntu Linux
First, let's quench your thirst for a quick installation of OpenJDK 11:
Ensure JDK is enjoying its new cozy corner:
Understanding JDK: OpenJDK vs Oracle JDK
JDK installation involves two popular choices: OpenJDK and Oracle JDK. OpenJDK is freely accessible, while Oracle JDK requires a license beyond development and testing purposes since early 2019. OpenJDK is generally preferred due to its broader platform support, licensing freedom, and active development.
Environmental setup: Bathing your system with JAVA_HOME and PATH
Post installation involves setting up JAVA_HOME
and PATH
. Our loyal servant, the system, then knows where to find java
and other executables.
Setting up JAVA_HOME
and PATH
Let's perform this ritual together:
Considering alternatives and advanced steps
Oracle JDK installation
If your heart longs for Oracle JDK, directly download it from Oracle and manually extract it. Beware, this approach requires manual updates and consideration of licensing terms.
Other Quests: OpenJDK alternatives
For OpenJDK 8, PPAs (Personal Package Archives) offer an alternative automatic updates route.
Was this article helpful?