Created
December 13, 2019 16:16
-
-
Save lbbedendo/99fc27d05405cd517ebaa03f7ea67e87 to your computer and use it in GitHub Desktop.
Configuring GraalVM in Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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