java – How to set GraalVM 17 as the default JDK in Manjaro Linux 23?
I’m using Manjaro 23, and I want to set GraalVM 17 as the default JDK.
I’m an Ubuntu user, and I used the update-alternatives java --config command to install third-party JDKs.
-
I installed GraalVM 17 by downloading the package from the official source.
-
I created a symbolic link from my GraalVM installation to
/usr/lib/jvm/java-17-graalvm. -
I tried using the
archlinux-javacommand to set the default JDK, but it returned an error message saying that/usr/lib/jvm/java-17-graalvmis not a valid directory. -
I also tried using the commands
archlinux-java set-defaultandarchlinux-java-set-default, but these commands do not exist.Is there a similar command to
update-alternativesin Manjaro that I can use?
Read more here: Source link
