You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix the GraalVM installation by [removing the quarantine flag](https://www.graalvm.org/latest/docs/getting-started/macos/).
56
56
`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.
export JAVA_GRAALVM17_HOME=/Library/Java/JavaVirtualMachines/graalvm-<current version of graalvm>/Contents/Home
64
64
export JAVA_HOME=$JAVA_8_HOME
65
65
```
66
+
* Restart your shell after applying the changes if you appended the commands to your shell configuration file.
66
67
67
68
> [!NOTE]
68
69
> ARM users: there is no Oracle JDK v8 for ARM.
@@ -72,15 +73,11 @@ export JAVA_HOME=$JAVA_8_HOME
72
73
> [!NOTE]
73
74
> MacOS users: remember that `/usr/libexec/java_home` may control which JDK is in your path.
74
75
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
-
79
76
**On Linux:**
80
77
81
78
* 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/).
82
79
* 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.
84
81
```shell
85
82
export JAVA_8_HOME=/<path to extracted archive>/jdk8u<current version of JDK 8>
86
83
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
89
86
export JAVA_GRAALVM17_HOME=/<path to extracted archive>/graalvm-jdk-17.<current version of graalvm>/Contents/Home
90
87
export JAVA_HOME=$JAVA_8_HOME
91
88
```
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.
0 commit comments