Installation on Linux Platforms
Oracle GraalVM is available for Linux on x64 and AArch64 architectures. You can install Oracle GraalVM on Linux from an archive (.tar.gz) for the current user into any location, without affecting other JDK installations.
Note on AArch64 Distribution
This distribution can be installed on Oracle Linux and Red Hat Enterprise Linux (RHEL) systems for the AArch64 architecture.
Follow these steps to install Oracle GraalVM:
-
Navigate to Oracle Java Downloads. Select the preferred Oracle GraalVM version, 17 or 20 for the Java version, Linux for the operating system, and the architecture. Start downloading.
-
Change directory to the location where you want to install Oracle GraalVM, then move the .tar.gz file to that directory.
- Unzip the archive:
tar -xzf graalvm-jdk-<version>_linux-<architecture>.tar.gz
- There can be multiple JDKs installed on your machine. The next step is to configure your runtime environment:
- Set the value of the
PATH
environment variable to the GraalVM bin directory:export PATH=/path/to/<graalvm>/bin:$PATH
- Set the
JAVA_HOME
environment variable to resolve to the installation directory:export JAVA_HOME=/path/to/<graalvm>
- Set the value of the
- To check whether the installation was successful, run the
java -version
command.
Optionally, you can use Oracle GraalVM as the default JRE or JDK installation in your Java IDE.