Skip to content

Commit bc2d4ad

Browse files
authored
chore: macOS use Java 17
1 parent 2ede950 commit bc2d4ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/setup/macos.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,23 @@ To install a **JDK** (using the prebuilt OpenJDK binaries from [Adoptium](https:
4444

4545
```cli
4646
brew tap homebrew/cask-versions
47-
brew install --cask temurin11
47+
brew install --cask temurin@17
4848
```
4949

5050
Once installed, open a new Terminal and verify that the default version is the one we installed:
5151

5252
```cli
5353
javac --version
5454
# should print something like:
55-
# javac 11.x.x
55+
# javac 17.x.x
5656
```
5757

5858
If the version looks correct, you are ready to move on to [Installing Android Studio](#installing-android-studio), otherwise you will need to set the `JAVA_HOME` environment variable.
5959

60-
Add the following lines to your shell profile, usually `~/.bash_profile` or `~/.bashrc`, or if you are using `zsh` then `~/.zprofile` or `~/.zshrc` config file:
60+
Add the following lines to your shell profile, usually `~/.zshrc`, `~/.bash_profile` or `~/.bashrc` or `~/.zprofile` config file:
6161

6262
```shell
63-
export JAVA_HOME=$(/usr/libexec/java_home -v"11");
63+
export JAVA_HOME=$(/usr/libexec/java_home -v"17");
6464
```
6565

6666
Repeat the verification from above.

0 commit comments

Comments
 (0)