Skip to content

Instantly share code, notes, and snippets.

@lbbedendo
Created December 13, 2019 16:16
Show Gist options
  • Save lbbedendo/99fc27d05405cd517ebaa03f7ea67e87 to your computer and use it in GitHub Desktop.
Save lbbedendo/99fc27d05405cd517ebaa03f7ea67e87 to your computer and use it in GitHub Desktop.
Configuring GraalVM in Ubuntu 18.04
#Installing GraalVM with SDKMAN (https://sdkman.io/)
sdk install java 19.2.1-grl
#Installing build tools (C development environment)
sudo apt install build-essential libz-dev zlib1g-dev
#Configuring GraalVM environment variable
#1. Edit global environment file
sudo vim /etc/environment
#2. Copy the following line at the end of the file
export GRAALVM_HOME=$HOME/.sdkman/candidates/java/19.2.1-grl/
#3. Reload the environment variable for the current shell
source /etc/environment
#Install the native-image tool using gu install:
${GRAALVM_HOME}/bin/gu install native-image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment