You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update installation instructions to install Java 21 (exercism#2543)
* Update installation instructions to install Java 21 (exercism#2368)
* Use Temurin JDK 21 Chocolatey package on Windows
* Install a specific version on macOS
See also: https://adoptium.net/installation/
2. Tap the [Homebrew Cask](https://caskroom.github.io/) — this allows us to install pre-built binaries like the JDK.
65
+
2. Tap the [Homebrew Cask](https://github.com/Homebrew/homebrew-cask-versions) — this allows us to install a specific JDK version.
67
66
68
67
```
69
-
$ brew tap adoptopenjdk/openjdk
68
+
$ brew tap homebrew/cask-versions
70
69
```
71
70
72
71
3. Install the JDK:
73
72
74
73
```
75
-
$ brew install --cask adoptopenjdk11
74
+
$ brew install --cask temurin21
76
75
```
77
76
78
77
4. Install Gradle:
@@ -98,7 +97,7 @@ Below are instructions for install using the package manager of your distro. If
98
97
99
98
If you are using Debian or its derivatives (like Ubuntu), use APT:
100
99
101
-
*(verified on: Ubuntu 14, 16 and 18)*
100
+
*(verified on: Ubuntu 20.04 and 22.04)*
102
101
103
102
1. Install the JDK:
104
103
@@ -107,7 +106,7 @@ If you are using Debian or its derivatives (like Ubuntu), use APT:
107
106
$ sudo apt-get install software-properties-common
108
107
$ sudo add-apt-repository ppa:openjdk-r/ppa
109
108
$ sudo apt-get update
110
-
$ sudo apt-get install openjdk-11-jdk
109
+
$ sudo apt-get install openjdk-21-jdk
111
110
```
112
111
113
112
2. Install Gradle:
@@ -126,17 +125,17 @@ To get started, see "[Running the Tests](https://exercism.org/docs/tracks/java/t
126
125
127
126
## Other Linux distributions
128
127
129
-
There are a lot of ways to install Jdk 11, but one of the easiest ways is to use SDKMAN, which lets you install
130
-
both OpenJdk11 and the latest Gradle with ease. Use the following steps:
128
+
There are a lot of ways to install JDK 21, but one of the easiest ways is to use SDKMAN, which lets you install
129
+
both OpenJDK 21 and the latest Gradle with ease. Use the following steps:
131
130
132
131
1. Install SDKMAN:
133
132
```sh
134
133
$ curl -s "https://get.sdkman.io" | bash
135
134
```
136
135
(if that doesn't work, take a look at the instructions found here: https://sdkman.io/install )
137
-
1. Install openjdk11:
136
+
1. Install OpenJDK 21:
138
137
```
139
-
$ sdk install java 11.0.2-open
138
+
$ sdk install java 21.0.1-tem
140
139
```
141
140
1. Install Gradle:
142
141
```sh
@@ -162,7 +161,7 @@ To get started, see "[Running the Tests](https://exercism.org/docs/tracks/java/t
162
161
*NOTE: these instructions are intended for experienced Windows users. If you don't already know how to set environment variables or feel comfortable managing the directory structure, we highly recommend you use the Chocolatey-based install, [above](#windows).*
163
162
164
163
1. Install the JDK:
165
-
1. Download "**OpenJDK 11 (LTS)**" from [AdoptOpenJDK](https://adoptopenjdk.net/releases.html?variant=openjdk11#x64_win) (choose **"Install JDK"**).
164
+
1. Download "**OpenJDK 21 (LTS)**" from [Adoptium](https://adoptium.net/temurin/releases/?os=windows&arch=x64&package=jdk&version=21) (choose **".msi"**).
166
165
- Run the installer, using all the defaults.
167
166
2. Install Gradle:
168
167
- Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
@@ -182,7 +181,7 @@ To get started, see "[Running the Tests](https://exercism.org/docs/tracks/java/t
182
181
*NOTE: these instructions are intended for experienced macOS users. Unless you specifically do not want to use a package manager, we highly recommend using the Homebrew-based installation instructions, [above](#macos).*
183
182
184
183
1. Install the JDK:
185
-
1. Download "**OpenJDK 11 (LTS)**" from [AdoptOpenJDK](https://adoptopenjdk.net/releases.html?variant=openjdk11#x64_mac) (choose **"Install JDK"**).
184
+
1. Download "**OpenJDK 21 (LTS)**" from [Adoptium](https://adoptium.net/temurin/releases/?os=mac&package=jdk&version=21) (choose **".pkg"**).
186
185
2. Run the installer, using all the defaults.
187
186
2. Install Gradle:
188
187
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
@@ -216,7 +215,7 @@ To get started, see "[Running the Tests](https://exercism.org/docs/tracks/java/t
216
215
*NOTE: these instructions are intended for experienced Linux users. Unless you specifically do not want to use a package manager, we highly recommend using the installation instructions, [above](#linux).*
217
216
218
217
1. Install the JDK:
219
-
1. Choose your distribution and download "**OpenJDK 11 (LTS)**" from [AdoptOpenJDK](https://adoptopenjdk.net/releases.html?variant=openjdk11) (choose **"Install JDK"**).
218
+
1. Choose your distribution and download "**OpenJDK 21 (LTS)**" from [Adoptium](https://adoptium.net/temurin/releases/?os=linux&package=jdk&version=21) (choose **".tar.gz"**).
220
219
2. Run the installer, using all the defaults.
221
220
2. Install Gradle:
222
221
1. Download "**Binary only distribution**" from the [Gradle download page](https://gradle.org/gradle-download/).
0 commit comments