Set up Zulu java enthronement in Ubuntu

Above all, all the content is a very concise version of the official installation guide.

Install zulu by apt.

# Import Azul's public key.sudo apt-key adv --keyserver hkp:// --recv-keys 0xB1998361219BD9C9# Download the installation package from the Azul Systems site Install the downloaded package by running the following command in your terminal:
sudo apt-get install ./zulu-repo_1.0.0-2_all.deb
# Update the information about available packages.
sudo apt-get update
# Install a Zulu package.
sudo apt-get install <zulu_package_name>
# Example:
sudo apt-get install zulu11-jdk

We could install multiple java versions by using above apt-get install command.

How to switch between multiple java version?

sudo update-alternatives --config java



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store