Skip to content

Instantly share code, notes, and snippets.

@emaballarin
Created September 21, 2022 17:50
Show Gist options
  • Save emaballarin/5ee21f81531c8fa0da5864f100a7a339 to your computer and use it in GitHub Desktop.
Save emaballarin/5ee21f81531c8fa0da5864f100a7a339 to your computer and use it in GitHub Desktop.
sudo update-alternatives --install "/usr/bin/jar" "jar" "__JDK__PATH__/bin/jar" 200
sudo update-alternatives --install "/usr/bin/jarsigner" "jarsigner" "__JDK__PATH__/bin/jarsigner" 200
sudo update-alternatives --install "/usr/bin/javac" "javac" "__JDK__PATH__/bin/javac" 200
sudo update-alternatives --install "/usr/bin/javadoc" "javadoc" "__JDK__PATH__/bin/javadoc" 200
sudo update-alternatives --install "/usr/bin/javap" "javap" "__JDK__PATH__/bin/javap" 200
sudo update-alternatives --install "/usr/bin/jcmd" "jcmd" "__JDK__PATH__/bin/jcmd" 200
sudo update-alternatives --install "/usr/bin/java" "java" "__JDK__PATH__/bin/java" 200
sudo update-alternatives --install "/usr/bin/jconsole" "jconsole" "__JDK__PATH__/bin/jconsole" 200
sudo update-alternatives --install "/usr/bin/jdb" "jdb" "__JDK__PATH__/bin/jdb" 200
sudo update-alternatives --install "/usr/bin/jdeprscan" "jdeprscan" "__JDK__PATH__/bin/jdeprscan" 200
sudo update-alternatives --install "/usr/bin/jdeps" "jdeps" "__JDK__PATH__/bin/jdeps" 200
sudo update-alternatives --install "/usr/bin/jfr" "jfr" "__JDK__PATH__/bin/jfr" 200
sudo update-alternatives --install "/usr/bin/jhsdb" "jhsdb" "__JDK__PATH__/bin/jhsdb" 200
sudo update-alternatives --install "/usr/bin/jimage" "jimage" "__JDK__PATH__/bin/jimage" 200
sudo update-alternatives --install "/usr/bin/jinfo" "jinfo" "__JDK__PATH__/bin/jinfo" 200
sudo update-alternatives --install "/usr/bin/jlink" "jlink" "__JDK__PATH__/bin/jlink" 200
sudo update-alternatives --install "/usr/bin/jmap" "jmap" "__JDK__PATH__/bin/jmap" 200
sudo update-alternatives --install "/usr/bin/jmod" "jmod" "__JDK__PATH__/bin/jmod" 200
sudo update-alternatives --install "/usr/bin/jpackage" "jpackage" "__JDK__PATH__/bin/jpackage" 200
sudo update-alternatives --install "/usr/bin/jps" "jps" "__JDK__PATH__/bin/jps" 200
sudo update-alternatives --install "/usr/bin/jrunscript" "jrunscript" "__JDK__PATH__/bin/jrunscript" 200
sudo update-alternatives --install "/usr/bin/jshell" "jshell" "__JDK__PATH__/bin/jshell" 200
sudo update-alternatives --install "/usr/bin/jstack" "jstack" "__JDK__PATH__/bin/jstack" 200
sudo update-alternatives --install "/usr/bin/jstat" "jstat" "__JDK__PATH__/bin/jstat" 200
sudo update-alternatives --install "/usr/bin/jstatd" "jstatd" "__JDK__PATH__/bin/jstatd" 200
sudo update-alternatives --install "/usr/bin/jwebserver" "jwebserver" "__JDK__PATH__/bin/jwebserver" 200
sudo update-alternatives --install "/usr/bin/keytool" "keytool" "__JDK__PATH__/bin/keytool" 200
sudo update-alternatives --install "/usr/bin/rmiregistry" "rmiregistry" "__JDK__PATH__/bin/rmiregistry" 200
sudo update-alternatives --install "/usr/bin/serialver" "serialver" "__JDK__PATH__/bin/serialver" 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment