Skip to content

Commit 7a7b944

Browse files
committed
[GR-70275] SDKMAN configuration
PullRequest: graal/22291
2 parents 8ef5841 + 83f0c6e commit 7a7b944

File tree

2 files changed

+36
-4
lines changed

2 files changed

+36
-4
lines changed

docs/getting-started/linux.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,33 @@ Select the installation option that you prefer.
1919
## SDKMAN!
2020

2121
Install Oracle GraalVM with [SDKMAN!](https://sdkman.io/){:target="_blank"}:
22+
2223
```bash
2324
sdk install java <version>-graal
2425
```
26+
2527
To install GraalVM Community Edition, change the distribution from `graal` to `graalce` in the command.
2628

2729
SDKMAN! helps you install and easily switch between JDKs.
28-
Check which GraalVM releases are available for installation by running:
30+
31+
To check which GraalVM releases are available for installation, run:
32+
2933
```bash
3034
sdk list java
3135
```
3236

37+
To switch to the specified GraalVM version for your current terminal session, run:
38+
39+
```bash
40+
sdk use java <version>-graal
41+
```
42+
43+
To set a version as the default for all new terminal sessions, run:
44+
45+
```bash
46+
sdk default java <version>-graal
47+
```
48+
3349
## From an Archive
3450

3551
Install GraalVM from an archive (_.tar.gz_) for the current user into any location, without affecting other JDK installations.
@@ -75,7 +91,8 @@ For other installation options, visit the [GraalVM Downloads page](https://www.g
7591

7692
## Prerequisites for Native Image on Linux
7793

78-
Native Image depends on the local toolchain (header files for the C library, `glibc-devel`, `zlib`, `gcc`, and/or `libstdc++-static`).
94+
Native Image depends on the local toolchain, including header files for the C library, `glibc-devel`, `zlib`, `gcc`, and/or `libstdc++-static`.
95+
7996
These dependencies can be installed (if not yet installed) using a package manager on your Linux machine.
8097

8198
On **Oracle Linux** use the `yum` package manager:

docs/getting-started/macos.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,32 @@ Select the installation option that you prefer.
2121
## SDKMAN!
2222

2323
Install Oracle GraalVM with [SDKMAN!](https://sdkman.io/){:target="_blank"}:
24+
2425
```bash
2526
sdk install java <version>-graal
2627
```
2728
To install GraalVM Community Edition, change the distribution from `graal` to `graalce` in the command.
2829

2930
SDKMAN! helps you install and easily switch between JDKs.
30-
Check which GraalVM releases are available for installation by running:
31+
32+
To check which GraalVM releases are available for installation, run:
33+
3134
```bash
3235
sdk list java
3336
```
3437

38+
To switch to the specified GraalVM version for your current terminal session, run:
39+
40+
```bash
41+
sdk use java <version>-graal
42+
```
43+
44+
To set a version as the default for all new terminal sessions, run:
45+
46+
```bash
47+
sdk default java <version>-graal
48+
```
49+
3550
## From an Archive
3651

3752
Install GraalVM from an archive (_.tar.gz_) for the current user into any location, without affecting other JDK installations.
@@ -48,7 +63,7 @@ Install GraalVM from an archive (_.tar.gz_) for the current user into any locati
4863
```bash
4964
sudo mv graalvm-jdk-<version> /Library/Java/JavaVirtualMachines
5065
```
51-
To verify if the move is successful and to get a list of all installed JDKs, run `/usr/libexec/java_home -V`.
66+
To verify that the move is successful and to get a list of all installed JDKs, run `/usr/libexec/java_home -V`.
5267

5368
4. There can be multiple JDKs installed on the machine. The next step is to configure the runtime environment:
5469
- Set the `JAVA_HOME` environment variable to resolve to the GraalVM installation directory:

0 commit comments

Comments
 (0)