The Nextjournal GraalVM Environment

We're going to install the Graal JVM Community Edition, off of GitHub. Note that the GraalVM version and installation directory are set as environment variables on the runtime.

GraalVM
GraalVM (Bash)
exporting environment
Type: Nextjournal
Environment:
Resources:
Environment Variables:
GRAAL_VERSION1.0.0-rc15
PATH/usr/local/graalvm/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
GRAAL_DIR/usr/local/graalvm
Download this environment as a Docker image from:

Download the install tarfile.

TARFILE="graalvm-ce-${GRAAL_VERSION}-linux-amd64.tar.gz"

wget --progress=bar:force -O graal.tgz \
  https://github.com/oracle/graal/releases/download/vm-${GRAAL_VERSION}/${TARFILE}

Extract to the installation dir.

mkdir $GRAAL_DIR
tar -zxf graal.tgz -C $GRAAL_DIR --strip-components=1
rm graal.tgz

And test.

java -version