How to install Adopt OpenJDK on Debian, Ubuntu with apt (-get)

Introduction

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).

procedure

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

Reference information

Recommended Posts

How to install Adopt OpenJDK on Debian, Ubuntu with apt (-get)
How to install WildFly on Ubuntu 18.04
How to install production Metabase on Ubuntu
How to install network drivers on standalone Ubuntu
How to install multiple JDKs on Ubuntu 18.04 LTS
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install rbenv with apt on ubuntu and put ruby
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
How to get started with JDBC using PostgresSQL on MacOS
Install openjdk8 on Docker image (Debian)
How to get started with slim
How to install ImageMagick on Windows 10
How to use Bio-Formats on Ubuntu 20.04
How to install MariaDB 10.4 on CentOS 8
How to get along with Rails
How to build vim on Ubuntu 20.04
Install ruby on Ubuntu 20.04 with rbenv
How to install and use Composer on an ECS instance on Ubuntu 16.04
How to install and configure the monitoring tool "Graphite" on Ubuntu
Install OpenJDK (Java) on the latest Ubuntu
How to install Eclipse (Photon) on Mac
I want to install PHP 7.2 on Ubuntu 20.04.
How to install beta php8.0 on CentOS8
How to change the timezone on Ubuntu
How to install kafkacat on Amazon Linux2
How to install c2ffi on Ubuntu, which automatically parses C header files
How to configure ubuntu to be used on GCP
Install Java 11 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 14 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
Install Java 8 (OpenJDK: AdoptOpenJDK) on macOS with Homebrew
How to get started with Eclipse Micro Profile
How to use nfs protocol version 2 with ubuntu 18.04
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
How to get resource files out with spring-boot
[Ruby on Rails] How to install Bootstrap in Rails
How to build a Pytorch environment on Ubuntu
How to run NullpoMino 7.5.0 on Ubuntu 20.04.1 64bit version
How to install Ruby on an EC2 instance on AWS
Install OpenJDK on macOS
How to run javafx with Raspberry Pi Posted on 2020/07/12
How to install & import Auto Gluon with Google Colaboratory
Install OpenJDK8 with RPM
Install pyqt5 on ubuntu
Install Java 8 (OpenJDK: Amazon Corretto) on macOS with Homebrew
Install Ruby on Ubuntu 20.04
Install Gradle with ubuntu16.04
How to install Docker
How to install docker-machine
As of April 2018 How to get Java 8 on Mac
Install Java 8 (OpenJDK: Zulu Community) on macOS with Homebrew
Install Autoware on Ubuntu 18.04.5
How to use RealSense with ubuntu 20.04 and ROS Noetic
Install MySQL 5.6 on CentOS6 [How to specify the version]
How to install MySQL
Install openjdk11 on mac
How to install Gradle and Kotlin with SDKMAN (Mac)
Install Homebrew on Ubuntu 20.04
Install OpenJDK 8 on mac
How to get started with creating a Rails app
How to install ngrok