Skip to content

Instantly share code, notes, and snippets.

@aeroevan
Created November 1, 2012 03:07
Show Gist options
  • Save aeroevan/3991399 to your computer and use it in GitHub Desktop.
Save aeroevan/3991399 to your computer and use it in GitHub Desktop.
update-alternatives for javac
update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_38/bin/javac 1 --slave /usr/bin/appletviewer appletviewer /usr/java/jdk1.6.0_38/bin/appletviewer --slave /usr/bin/apt apt /usr/java/jdk1.6.0_38/bin/apt --slave /usr/bin/extcheck extcheck /usr/java/jdk1.6.0_38/bin/extcheck --slave /usr/bin/jar jar /usr/java/jdk1.6.0_38/bin/jar --slave /usr/bin/jarsigner jarsigner /usr/java/jdk1.6.0_38/bin/jarsigner --slave /usr/bin/javadoc javadoc /usr/java/jdk1.6.0_38/bin/javadoc --slave /usr/bin/javah javah /usr/java/jdk1.6.0_38/bin/javah --slave /usr/bin/javap javap /usr/java/jdk1.6.0_38/bin/javap --slave /usr/bin/jconsole jconsole /usr/java/jdk1.6.0_38/bin/jconsole --slave /usr/bin/jdb jdb /usr/java/jdk1.6.0_38/bin/jdb --slave /usr/bin/jhat jhat /usr/java/jdk1.6.0_38/bin/jhat --slave /usr/bin/jinfo jinfo /usr/java/jdk1.6.0_38/bin/jinfo --slave /usr/bin/jmap jmap /usr/java/jdk1.6.0_38/bin/jmap --slave /usr/bin/jps jps /usr/java/jdk1.6.0_38/bin/jps --slave /usr/bin/jrunscript jrunscript /usr/java/jdk1.6.0_38/bin/jrunscript --slave /usr/bin/jsadebugd jsadebugd /usr/java/jdk1.6.0_38/bin/jsadebugd --slave /usr/bin/jstack jstack /usr/java/jdk1.6.0_38/bin/jstack --slave /usr/bin/jstat jstat /usr/java/jdk1.6.0_38/bin/jstat --slave /usr/bin/jstatd jstatd /usr/java/jdk1.6.0_38/bin/jstatd --slave /usr/bin/native2ascii native2ascii /usr/java/jdk1.6.0_38/bin/native2ascii --slave /usr/bin/pack200 pack200 /usr/java/jdk1.6.0_38/bin/pack200 --slave /usr/bin/rmic rmic /usr/java/jdk1.6.0_38/bin/rmic --slave /usr/bin/schemagen schemagen /usr/java/jdk1.6.0_38/bin/schemagen --slave /usr/bin/serialver serialver /usr/java/jdk1.6.0_38/bin/serialver --slave /usr/bin/unpack200 unpack200 /usr/java/jdk1.6.0_38/bin/unpack200 --slave /usr/bin/wsgen wsgen /usr/java/jdk1.6.0_38/bin/wsgen --slave /usr/bin/wsimport wsimport /usr/java/jdk1.6.0_38/bin/wsimport --slave /usr/bin/xjc xjc /usr/java/jdk1.6.0_38/bin/xjc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment