Skip to content

Commit

Permalink
fix: recommend jdk 17 instead of 11
Browse files Browse the repository at this point in the history
  • Loading branch information
rigor789 committed Jul 11, 2024
1 parent a97790a commit cf3ca4c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions content/setup/linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ You will need Node, NativeScript CLI (command line interface), Android Studio an

**Android Studio** is not strictly necessary — however it provides an easy-to-use interface for installing and managing the Android SDKs.

To install **Node** follow the [instructions specific to your Linux distribution](https://nodejs.org/en/download/package-manager/). We recommend using the latest version, however anything above **Node 12** should be fine.
To install **Node** follow the [instructions specific to your Linux distribution](https://nodejs.org/en/download/package-manager/). We recommend using the latest version, however anything above **Node 14** should be fine.

:::warning Note
We have gone through these steps on **Ubuntu 20.04** and noted the commands we used, however depending on your Linux distribution, the commands may be different. We cannot provide commands for all possible distributions, so please refer to the linked documentation to find the correct commands you need to run.
Expand All @@ -33,8 +33,8 @@ To confirm **Node** is installed correctly, run:
$ node -v
$ npm -v
# Should print something like
$:v15.x.x
7.x.x
$:v22.x.x
10.x.x
```

A **JDK version 8 or greater** is required, and you have a couple options:
Expand All @@ -46,8 +46,8 @@ A **JDK version 8 or greater** is required, and you have a couple options:
<!-- tab:Ubuntu 20.04 -->

```cli
# On Ubuntu 20.04, we used the following command to install OpenJDK 14
sudo apt-get install -y openjdk-14-jdk
# On Ubuntu 20.04, we used the following command to install OpenJDK 17
sudo apt-get install -y openjdk-17-jdk
```

To confirm **JDK** is installed correctly, run:
Expand All @@ -56,11 +56,11 @@ To confirm **JDK** is installed correctly, run:
$ java --version
$ javac --version
# Should print something like
$:openjdk 14.0.2 2020-07-14
OpenJDK Runtime Environment (build 14.0.2+12-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 14.0.2+12-Ubuntu-120.04, mixed mode, sharing)
$:openjdk 17.x.x 202x-xx-xx
OpenJDK Runtime Environment (build xx.x.x+xx-Ubuntu-xxx.xx)
OpenJDK 64-Bit Server VM (build xx.x.x+xx-Ubuntu-xxx.xx, mixed mode, sharing)
javac 14.0.2
javac 17.x.x
```

:::tip Note
Expand Down
2 changes: 1 addition & 1 deletion content/setup/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ If any of the above failed, we recommend checking out the [Microsoft Docs for Se
To install a **JDK** (using the prebuilt OpenJDK binaries from [Adoptium](https://adoptium.net/)) open an Administrator Command Prompt (right click and select "Run as Administrator") and run the following command:

```cli
choco install -y temurin11
choco install -y temurin17
```

Once installed, you might need to add it to your `Path`. First, check if you need to add it to your `Path` by opening a new Command Prompt and running the following:
Expand Down

0 comments on commit cf3ca4c

Please sign in to comment.