Skip to content

Commit d7b14cf

Browse files
authored
Merge pull request #7797 from DataDog/sarahchen6/clarify-export-command
Update BUILDING.md
2 parents 0b2da9c + 054553e commit d7b14cf

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

BUILDING.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Requirements to build the full project:
5454
`brew install --cask zulu@8 zulu@11 zulu@17 zulu@21 graalvm/tap/graalvm-ce-java17`
5555
* Fix the GraalVM installation by [removing the quarantine flag](https://www.graalvm.org/latest/docs/getting-started/macos/).
5656
`sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/graalvm-<current version of graalvm>`
57-
* Add the required environment variables to your shell using the `export` command.
57+
* Add the required environment variables to your shell using the `export` command. You can permanently install the environment variables by appending the `export` commands into your shell configuration file `~/.zshrc` or `.bashrc` or other.
5858
```shell
5959
export JAVA_8_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
6060
export JAVA_11_HOME=/Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
@@ -63,6 +63,7 @@ export JAVA_21_HOME=/Library/Java/JavaVirtualMachines/zulu-21.jdk/Contents/Home
6363
export JAVA_GRAALVM17_HOME=/Library/Java/JavaVirtualMachines/graalvm-<current version of graalvm>/Contents/Home
6464
export JAVA_HOME=$JAVA_8_HOME
6565
```
66+
* Restart your shell after applying the changes if you appended the commands to your shell configuration file.
6667

6768
> [!NOTE]
6869
> ARM users: there is no Oracle JDK v8 for ARM.
@@ -72,15 +73,11 @@ export JAVA_HOME=$JAVA_8_HOME
7273
> [!NOTE]
7374
> MacOS users: remember that `/usr/libexec/java_home` may control which JDK is in your path.
7475
75-
> [!NOTE]
76-
> You can permanently install the environment variables by appending the `export` commands into your shell configuration file `~/.zshrc` or `.bashrc` or other.
77-
> You will need to restart your shell after applying the changes.
78-
7976
**On Linux:**
8077

8178
* Download and extract JDK 8, 11, 17 and 21 from [Eclipse Temurin releases](https://adoptium.net/temurin/releases/) and GraalVM from [Oracle downloads](https://www.graalvm.org/downloads/).
8279
* Install the GraalVM native image requirements for native builds by following [the GraalVM official documentation](https://www.graalvm.org/latest/reference-manual/native-image/#prerequisites).
83-
* Add the required environment variables to your shell using the `export` command.
80+
* Add the required environment variables to your shell using the `export` command. You can permanently install the environment variables by appending the `export` commands into your shell configuration file `~/.zshrc` or `~/.bashrc` or other.
8481
```shell
8582
export JAVA_8_HOME=/<path to extracted archive>/jdk8u<current version of JDK 8>
8683
export JAVA_11_HOME=/<path to extracted archive>/jdk-11.<current version of JDK 11>
@@ -89,10 +86,7 @@ export JAVA_21_HOME=/<path to extracted archive>/jdk-21.<current version of JDK
8986
export JAVA_GRAALVM17_HOME=/<path to extracted archive>/graalvm-jdk-17.<current version of graalvm>/Contents/Home
9087
export JAVA_HOME=$JAVA_8_HOME
9188
```
92-
93-
> [!NOTE]
94-
> You can permanently install the environment variables by appending the `export` commands into your shell configuration file `~/.zshrc` or `.bashrc` or other.
95-
> You will need to restart your shell after applying the changes.
89+
* Restart your shell after applying the changes if you appended the commands to your shell configuration file.
9690

9791
**On Windows:**
9892

0 commit comments

Comments
 (0)