0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ubuntu 18.04にOpenJDK 17をインストール(OS標準)

Posted at

はじめに

Ubuntu18.04にOpenJDKを標準インストール
親記事:OpenJDKの各種インストール方法とEOLまとめ

サポート

いくつかのベンダがOpenJDK17の長期サポートを表明しているため、OS EOLとなる2023-04まではサポートされると思われる。

LOG

インストール

// 2021-11-18時点ではいくつかエラーが出る

# cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

# apt update;apt install -y openjdk-17-jdk
... 略

各種確認

# which java
/usr/bin/java

# java -version
openjdk version "17" 2021-09-14
OpenJDK Runtime Environment (build 17+35-Ubuntu-118.04)
OpenJDK 64-Bit Server VM (build 17+35-Ubuntu-118.04, mixed mode, sharing)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?