Skip to content

Instantly share code, notes, and snippets.

@aeroevan
Created November 1, 2012 03:08
Show Gist options
  • Save aeroevan/3991400 to your computer and use it in GitHub Desktop.
Save aeroevan/3991400 to your computer and use it in GitHub Desktop.
update-alternatives for java
update-alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_38/jre/bin/java 1 --slave /usr/bin/rmid rmid /usr/java/jdk1.6.0_38/jre/bin/rmid --slave /usr/bin/keytool keytool /usr/java/jdk1.6.0_38/jre/bin/keytool --slave /usr/bin/orbd orbd /usr/java/jdk1.6.0_38/jre/bin/orbd --slave /usr/bin/policytool policytool /usr/java/jdk1.6.0_38/jre/bin/policytool --slave /usr/bin/rmiregistry rmiregistry /usr/java/jdk1.6.0_38/jre/bin/rmiregistry --slave /usr/bin/servertool servertool /usr/java/jdk1.6.0_38/jre/bin/servertool --slave /usr/bin/tnameserv tnameserv /usr/java/jdk1.6.0_38/jre/bin/tnameserv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment