Installation on Linux Platforms #
GraalVM Community is available for Linux AMD64 and AARCH64 architectures. The GraalVM distribution for AArch64 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.
- Navigate to the GraalVM Releases repository on GitHub. Depending on the workload, select GraalVM Community Edition based on JDK8 for Linux or GraalVM Community Edition based on JDK11 for Linux and download.
- Unzip the archive to your file system:
tar -xzf <graalvm-archive>.tar.gz
- Configure your environment:
- Point the
PATHenvironment variable to the GraalVM’s
To verify whether you are using GraalVM, run
- Set the
JAVA_HOMEenvironment variable to resolve to the installation directory:
- Point the
Optionally, you can specify GraalVM as the JRE or JDK installation in your Java IDE.
For Oracle GraalVM Enterprise Edition users, find the installation instructions here.
Install Additional Components #
- Native Image – a technology to compile an application ahead-of-time into a native executable.
- LLVM toolchain – a set of tools and APIs for compiling native programs to bitcode that can be executed with on the GraalVM runtime. Language Runtimes:
- Python – Python 3.8.5 compatible
- Ruby – Ruby 2.6.6 compatible
- R – GNU R 3.6.1 compatible
- Wasm – WebAssembly (Wasm) These functionalities are not part of the GraalVM Community base distribution and must be downloaded and installed separately.
To assist a user with installation, GraalVM includes GraalVM Updater, a command line utility to install and manage additional functionalities. Proceed to the installation steps to add any necessary language runtime or utility from above to GraalVM.