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
GraalVM compiles your Java applications ahead of time into standalone binaries that start instantly, provide peak performance with no warmup, and use fewer resources.
11
-
10
+
GraalVM is an advanced JDK with ahead-of-time Native Image compilation.
12
11
Here you will find information about installing GraalVM and running basic applications with it.
13
12
14
-
If you are new to GraalVM, we recommend starting with the [introduction to GraalVM](../../introduction.md), where you will find information about GraalVM's benefits, distributions available, supported platforms, features support, and licensing.
13
+
If you are new to GraalVM, we recommend starting with the [introduction to GraalVM](../../introduction.md), where you will find information about GraalVM's benefits, distributions, certified platforms, available features, and licensing.
15
14
16
15
If you have GraalVM already installed and have experience using it, you can skip this page and proceed to the in-depth [reference manuals](../../reference-manual/reference-manuals.md).
17
16
@@ -30,7 +29,7 @@ You can use the GraalVM JDK just like any other JDK in your IDE, so having insta
30
29
The `java` launcher runs the JVM with Graal as the last-tier compiler.
31
30
Check the installed Java version:
32
31
```shell
33
-
$JAVA_HOME/bin/java -version
32
+
java -version
34
33
```
35
34
36
35
Using [GraalVM Native Image](../../reference-manual/native-image/README.md) you can compile Java bytecode into a platform-specific, self-contained native executable to achieve faster startup and a smaller footprint for your application.
You can install GraalVM on Linux from an archive (_.tar.gz_) for the current user into any location, without affecting other JDK installations.
16
+
Select the installation option that you prefer.
13
17
14
-
Follow these steps to install GraalVM:
18
+
## SDKMAN!
15
19
16
-
1. Navigate to the [GraalVM Downloads page](https://www.graalvm.org/downloads/). Select **22** for the Java version, **Linux** for the operating system, **x64** or **aarch64** for the architecture, and download.
20
+
Install GraalVM with [SDKMAN!](https://sdkman.io/):
21
+
```
22
+
sdk install java 23-graalce
23
+
```
24
+
25
+
SDKMAN! helps you install and easily switch between JDKs.
26
+
Check which GraalVM releases are available for installation by running:
27
+
```bash
28
+
sdk list java
29
+
```
30
+
31
+
## From an Archive
32
+
33
+
Install GraalVM from an archive (_.tar.gz_) for the current user into any location, without affecting other JDK installations.
34
+
35
+
1. Navigate to the [GraalVM Downloads page](https://www.graalvm.org/downloads/). Select **23** for the Java version, **Linux** for the operating system, **x64** or **aarch64** for the architecture, and download.
17
36
18
37
2. Change to directory where you want to install GraalVM, then move the _.tar.gz_ file to that directory.
19
38
20
39
3. Unzip the archive:
21
40
```shell
22
41
tar -xzf graalvm-jdk-<version>_linux-<architecture>.tar.gz
23
42
```
24
-
4. There can be multiple JDKs installed on the machine. The next step is to configure the runtime environment:
43
+
44
+
4. There can be multiple JDKs installed on the machine. Configure the runtime environment:
25
45
- Set the value of the `JAVA_HOME` environment variable to the installation directory:
26
46
```shell
27
47
export JAVA_HOME=/path/to/<graalvm>
28
48
```
29
49
- Set the value of the `PATH` environment variable to the GraalVM _bin_ directory:
30
50
```shell
31
51
export PATH=/path/to/<graalvm>/bin:$PATH
32
-
```
33
-
5. To confirm that the installation was successful, run the `java -version` command.
52
+
```
53
+
54
+
To confirm that the installation was successful, run the `java -version` command.
55
+
Optionally, you can specify GraalVM as the default JRE or JDK installation in your Java IDE.
56
+
57
+
## Script-Friendly URLs
58
+
59
+
[Script-friendly URLs](https://www.oracle.com/java/technologies/jdk-script-friendly-urls/) enable you to download GraalVM from a command line, or automatically in your script and Dockerfile by using a download URL.
60
+
Substitute `<version>` and `<architecture>` with the JDK version and `aarch64` or `x64` architecture.
Note that on macOS the JDK installation path is: <em>/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home</em>.
13
17
14
-
Follow these steps to install GraalVM:
18
+
Select the installation option that you prefer.
15
19
16
-
1. Navigate to the [GraalVM Downloads page](https://www.graalvm.org/downloads/). Select **22** for the Java version, **macOS** for the operating system, **x64** or **aarch64** for the architecture, and download.
20
+
## SDKMAN!
21
+
22
+
Install GraalVM with [SDKMAN!](https://sdkman.io/):
23
+
```
24
+
sdk install java 23-graalce
25
+
```
26
+
27
+
SDKMAN! helps you install and easily switch between JDKs.
28
+
Check which GraalVM releases are available for installation by running:
29
+
```bash
30
+
sdk list java
31
+
```
32
+
33
+
## From an Archive
34
+
35
+
Install GraalVM from an archive (_.tar.gz_) for the current user into any location, without affecting other JDK installations.
36
+
37
+
1. Navigate to the [GraalVM Downloads page](https://www.graalvm.org/downloads/). Select **23** for the Java version, **macOS** for the operating system, **x64** or **aarch64** for the architecture, and download.
17
38
18
39
2. Remove the quarantine attribute (required for macOS Catalina and later):
19
40
```shell
@@ -40,16 +61,32 @@ Follow these steps to install GraalVM:
40
61
- Set the value of the `PATH` environment variable to the GraalVM _bin_ directory:
6. To check whether the installation was successful, run the `java -version` command.
64
+
```
46
65
66
+
To confirm that the installation was successful, run the `java -version` command.
47
67
Optionally, you can specify GraalVM as the default JRE or JDK installation in your Java IDE.
48
68
69
+
## Script-Friendly URLs
70
+
71
+
[Script-friendly URLs](https://www.oracle.com/java/technologies/jdk-script-friendly-urls/) enable you to download GraalVM from a command line, or automatically in your script and Dockerfile by using a download URL.
72
+
Substitute `<version>` and `<architecture>` with the JDK version and `aarch64` or `x64` architecture.
For other installation options, visit the [GraalVM Downloads page](https://www.graalvm.org/downloads/).
85
+
49
86
## Installation Notes
50
87
51
88
### On JAVA_HOME Command
52
89
The information property file, _Info.plist_, is in the top level _Contents_ directory.
53
-
This means that GraalVM participates in the macOS-specific `/usr/libexec/java_home` mechanism. Depending on other JDK installation(s) available, it is now possible that `/usr/libexec/java_home -v22` returns `/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home`.
54
-
You can run `/usr/libexec/java_home -v22 -V` to see the complete list of JVMs available to the `java_home` command. This command sorts the JVMs in decreasing version order and chooses the top one as the default for the specified version.
90
+
This means that GraalVM participates in the macOS-specific `/usr/libexec/java_home` mechanism. Depending on other JDK installation(s) available, it is now possible that `/usr/libexec/java_home -v23` returns `/Library/Java/JavaVirtualMachines/<graalvm>/Contents/Home`.
91
+
You can run `/usr/libexec/java_home -v23 -V` to see the complete list of JVMs available to the `java_home` command. This command sorts the JVMs in decreasing version order and chooses the top one as the default for the specified version.
55
92
Within a specific version, the sort order appears to be stable but is unspecified.
1. Navigate to the [GraalVM Downloads page](https://www.graalvm.org/downloads/). Select **22** for the Java version, **Windows** for the operating system, and download.
17
+
## Installing from an Archive
18
+
19
+
1. Navigate to the [GraalVM Downloads page](https://www.graalvm.org/downloads/). Select **23** for the Java version, **Windows** for the operating system, and download.
16
20
17
21
2. Change to the directory where you want to install GraalVM, then move the _.zip_ archive file to it.
18
22
@@ -99,4 +103,8 @@ To build a project using the [Native Build Tools Gradle plugin](https://graalvm.
99
103
gradlew.bat nativeCompile
100
104
```
101
105
102
-
This guide was written for Windows 11, but should be valid for Windows 8 and 10.
106
+
This guide was written for Windows 11, but should be valid for Windows 8 and 10.
107
+
108
+
## Other Installation Options
109
+
110
+
For other installation options for Windows, visit the [GraalVM Downloads page](https://www.graalvm.org/downloads/).
0 commit comments