Date: 4 Mar 2022
GraalVM setup on Fedora
GraalVM setup on Fedora
-
Download the version you want from GraalVM Releases repository on GitHub . Remember to choose the architecture correctly but i’m assuming most of you have AMD64.
- Untar the .tar.gz file
tar -xzf graalvm-ce-java<version>-linux-amd64-<version>.tar.gz -
mv the file
/usr/lib/jvm/directorymv graalvm-ce-java<version>-linux-amd64-<version> /usr/lib/jvm -
Now edit the
/etc/profilefile and add the following to the last.export JAVA_HOME=/usr/lib/jvm/graalvm-ce-java17-22.0.0.2export PATH=$JAVA_HOME/bin:$PATH -
For it is better to logout or restart to get system wide changes but we can also use
source /etc/profileto see the system wide changes but did’nt works always.## Complete * Download
tar -xzf graalvm-ce-java<version>-linux-amd64-<version>.tar.gz mv graalvm-ce-java<version>-linux-amd64-<version> /usr/lib/jvm vim /etc/profile // Add these lines to the end of the file export JAVA_HOME=/usr/lib/jvm/graalvm-ce-java17-22.0.0.2 export PATH=$JAVA_HOME/bin:$PATH // You can source but i recommend to restart or re-login source /etc/profile