1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Java 21 を Windows 11 にインストールする手順

1
Posted at

JDK 21 をダウンロードする

以下のサイトにアクセス

  1. https://adoptium.net
    「Latest LTS」が 21 になっていることを確認

  2. OS が Windows、アーキテクチャが x64 になっていることを確認

  3. 「.msi」インストーラをダウンロード

インストーラを実行する

  1. ダウンロードした OpenJDK21U-jdk_x64_windows_hotspot_*.msi を実行

  2. 「Next」をクリック

  3. インストール先を確認(通常はデフォルトでOK)

  4. 「Add to PATH」にチェックが入っていることを確認

  5. 「Install」をクリックしてインストール開始

  6. 完了したら「Finish」をクリック

Java が正しくインストールされたか確認する

  1. Windows のスタートメニューから PowerShell または コマンドプロンプト を開く

  2. 次のコマンドを実行

java -version
openjdk version "21" ...

環境変数 JAVA_HOME を設定する

一部のツールは JAVA_HOME を必要とします。

設定手順

  1. Windows の検索で「環境変数」と入力
  2. 「環境変数を編集」を開く
  3. 「システム環境変数」→「新規」
  4. 以下を入力
    変数名:JAVA_HOME
  5. 変数値:JDK のインストールパス
    例)C:\Program Files\Eclipse Adoptium\jdk-21
  6. 「OK」を押して保存

Path に %JAVA_HOME%\bin を追加(追加されていなければ)

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?