Installation on Linux Platforms #
Follow these steps to install GraalVM Community Edition on the Linux operating system.
- Navigate to the GraalVM Releases repository on GitHub. Select Java 11 based or Java 17 based distribution for the Linux AMD64 architecture, and download.
- Change the directory to the location where you want to install GraalVM, then move the .tar.gz archive to it.
- Unzip the archive:
tar -xzf graalvm-ce-java<version>-linux-amd64-<version>.tar.gz
- There can be multiple JDKs installed on the machine. The next step is to configure the runtime environment:
- Point the
PATHenvironment variable to the GraalVM Enterprise
- Set the
JAVA_HOMEenvironment variable to resolve to the installation directory:
- Point the
- To check whether the installation was successful, run the
Optionally, you can specify GraalVM as the default JRE or JDK installation in your Java IDE.
For Oracle GraalVM Enterprise Edition users, find the installation instructions here.
Supported Functionalities #
- 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
- Java on Truffle – a Java Virtual Machine implementation based on a Truffle interpreter for GraalVM
- Node.js – Node.js v14.18.1 compatible
- Python – Python 3.8.5 compatible
- Ruby – Ruby 3.0.2 compatible
- R – GNU R 4.0.3 compatible
- Wasm – WebAssembly (Wasm) These runtimes are not part of the GraalVM Community base distribution and must be 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.