...
Users choose the Oracle® GraalVM for their OS platform an Java version supported by the JS7 Agent, for example Java 17. For details see Which Java versions is JobScheduler available for?
Code Block |
---|
language | bash |
---|
title | Example how to download Oracle® GraalVM for Linux |
---|
linenumbers | true |
---|
|
curl 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.7/graalvm-community-jdk-17.0.7_linux-x64_bin.tar.gz' -O
tar -xzf graalvm-community-jdk-17.0.7_linux-x64_bin.tar.gz -C /opt/java |
Installation
After download users extract the .tar.gz/.zip archive of the Oracle® GraalVM and make the JAVA_HOME
environment variable to point to the location where Oracle® GraalVM is extracted.
In a next step the related interpreter js
JavaScript component has to be downloaded and initialized, for details see GraalVM Updater:
Code Block |
---|
language | bash |
---|
title | Install |
---|
linenumbers | true |
---|
| Example how to download and install Oracle® GraalVM for Linux |
---|
linenumbers | true |
---|
|
JAVA_HOME=/opt/java/graalvm-community-openjdk-17.0.7+7.1
# check components included with downloaded Oracle GraalVM
$JAVA_HOME/bin/gu list *
# output to the command can look like this (indicating that the js JavaScript component by default is not included):
# ComponentId Version Component name Stability Origin
# ---------------------------------------------------------------------------------------------------------------------------------
# native-image 23.0.0 Native Image Early adopter
# check js JavaScript components available for installation with Oracle GraalVM
$JAVA_HOME/bin/gu available js
# output to the command can look like this:
# ComponentId Version Component name Stability Origin
# ---------------------------------------------------------------------------------------------------------------------------------
# js 23.0.0 Graal.js Supported github.com
# nodejs 23.0.0 Graal.nodejs Supported github.com
# install js (JavaScript) component from download
$JAVA_HOME/bin/gu install js
# alternatively perform download separately and install .jar file
# cur '' -O
# $GRAALVM/bin/gu install --file ~/Downloads/js-installable-...-.jar |
Code Block |
---|
language | bash |
---|
title | Example how to download and install Oracle® GraalVM for Linux |
---|
linenumbers | true |
---|
|
JAVA_HOME=/opt/java/graalvm-community-openjdk-17.0.7+7.1
$JAVA_HOME/bin/gu install js
$GRAALVM/bin/gu install nodejs--file ~/Downloads/js-installable-...-.jar |
Example
Code Block |
---|
language | bash |
---|
title | Example how to download and install Oracle® GraalVM for Linux |
---|
linenumbers | true |
---|
|
curl 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-17.0.7/graalvm-community-jdk-17.0.7_linux-x64_bin.tar.gz' -O
tar -xzf -C /opt/java
JAVA_HOME=/opt/java/graalvm-community-openjdk-17.0.7+7.1
$JAVA_HOME/bin/gu install js |