With the end of support for Oracle JDK 8 and the payment of Oracle JDK, the Adopt Open JDK is drawing attention. For example, Atlassian Australia's Jira and Confluence support the Adopt Open JDK.
The standard method for installing AdoptOpenJDK is to download the tar + gz format archive file from the AdoptOpenJDK site, extract it, place it in an appropriate directory, and pass it through the path, but Ubuntu and Debian are installed. If you are using it, you will want to manage it with apt (-get) anyway.
So, it is the installation method of AdoptOpenJDK from apt (-get).
When installing OpenJDK 8 (The content is the same as the reference information below)
Ubuntu
sudo add-apt-repository --yes ppa:rpardini/adoptopenjdk
sudo apt-get update
sudo apt-get install adoptopenjdk-8-installer
Debian
[[ ! -f /usr/lib/apt/methods/https ]] && sudo apt-get update && sudo apt-get install apt-transport-https
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A66C5D02
echo 'deb https://rpardini.github.io/adoptopenjdk-deb-installer stable main' > /etc/apt/sources.list.d/rpardini-aoj.list
sudo apt-get update
sudo apt-get install adoptopenjdk-8-installer
Recommended Posts