Installation on Linux Platforms #

GraalVM Community is available for Linux AMD64 and AARCH64 architectures. The GraalVM distribution for AArch64, graalvm-ce-java11-linux-aarch64-20.1.0, is currently under development and is provided for evaluation and testing use.

Follow these steps to install GraalVM Community Edition on a Linux operating system. 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.2.0.tar.gz or graalvm-ce-java11-linux-amd64-20.2.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 AMD64 architecture includes the JVM, the GraalVM compiler, the LLVM bitcode interpreter, the JavaScript runtime with Node.js support, and 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 the LLVM toolchain component, run:

gu install llvm-toolchain

To install GraalVM Native Image, run:

gu install native-image

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

Please note, the base distribution of GraalVM for Linux AARCH64 architecture can only be extended with GraalVM Native Image.