Skip to content

Commit 6c54682

Browse files
committed
chore: macos guide recommend java 21+
1 parent 1c2df80 commit 6c54682

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

content/setup/macos.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ To install **Node** we recommend using a node version manager, such as [nvm](htt
4444
To install a **JDK** (using the prebuilt OpenJDK binaries from [Adoptium](https://adoptium.net/)) run the following command:
4545

4646
```bash
47-
brew install --cask temurin@17
47+
brew install --cask temurin@21
4848
```
4949

5050
:::warning Note
51-
Using JDK 17 is highly recommended as the nativescript-bundled version of gradle is compatible. Using a newer version of the JDK may cause issues with your android build process.
51+
Using JDK 21 is highly recommended as the nativescript-bundled version of gradle is compatible. Using a newer version of the JDK may cause issues with your android build process.
5252
:::
5353

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

5656
```bash
5757
javac --version
5858
# should print something like:
59-
# javac 17.x.x
59+
# javac 21.x.x
6060
```
6161

6262
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.
6363

6464
Add the following lines to your shell profile, usually `~/.zshrc`, `~/.bash_profile` or `~/.bashrc` or `~/.zprofile`:
6565

6666
```shell
67-
export JAVA_HOME=$(/usr/libexec/java_home -v"17");
67+
export JAVA_HOME=$(/usr/libexec/java_home -v"21");
6868
```
6969

7070
Repeat the verification from above.

0 commit comments

Comments
 (0)