安装依赖

sudo apt-get update; sudo apt-get install software-properties-common gnupg 

添加源

wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add - 
sudo add-apt-repository 'deb https://apt.corretto.aws stable main'

安装java16

sudo apt-get update; sudo apt-get install -y java-16-amazon-corretto-jdk

完成

发表评论