Set up Zulu java enthronement in Ubuntu

Above all, all the content is a very concise version of the official installation guide. https://docs.azul.com/zulu/zuludocs/ZuluUserGuide/Title.htm

Install zulu by apt.

# Import Azul's public key.sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9# Download the installation package from the Azul Systems site https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-2_all.deb.# 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