Installation on Linux Platforms

Follow these steps to install GraalVM Community Edition on x86 64-bit Linux operating systems. For Oracle GraalVM Enterprise Edition users, find the installation instructions here.

  1. Navigate to the GraalVM Releases repository on GitHub. Depending on the workload, select graalvm-ce-java8-linux-amd64-20.1.0.tar.gz or graalvm-ce-java11-linux-amd64-20.1.0.tar.gz and download. We will focus on GraalVM Community based on OpenJDK 8.
  2. Unzip the archive to your file system. $ tar xz archive.tar.gz
  3. Configure your environment:
    • Prepend the GraalVM bin directory to the PATH environment variable: $ export PATH=<path to GraalVM>/bin:$PATH To verify whether you are using GraalVM, run: $ which java
    • Set the JAVA_HOME environment variable to resolve to the GraalVM installation directory: $ export JAVA_HOME=<path to GraalVM>
  4. You can also specify GraalVM as the JRE or JDK installation in your Java IDE.

Install Additional Components

The base distribution of GraalVM for Linux platforms includes the JVM, the GraalVM compiler, the LLVM bitcode interpreter, and the JavaScript runtime with Node.js support. GraalVM environment can be extended with additional components.

To add support for Python, R, Ruby or WebAssembly languages interpreters in GraalVM Community, use of the functional gu utility. There is a component catalog on GitHub (gu available), from which you can install a component just by its name:

gu install ruby
gu install r
gu install python
gu install wasm

To install GraalVM Native Image, run:

gu install native-image

To install the LLVM toolchain component, run:

gu install llvm-toolchain

Additional components may be also installed from the local components collection. For more details, proceed to the GraaVM Updater page.