Created
November 10, 2014 11:27
-
-
Save igilham/5846b5710d221292d30c to your computer and use it in GitHub Desktop.
Relink Java binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ITEMS=( "appletviewer" "apt" "extcheck" "idlj" "jar" "jarsigner" "java" "javac" "javadoc" "javah" "javap" "javaws" "jconsole" "jdb" "jhat" "jinfo" "jmap" "jps" "jrunscript" "jsadebugd" "jstack" "jstat" "jstatd" "keytool" "native2ascii" "orbd" "pack200" "policytool" "rmic" "rmid" "rmiregistry" "schemagen" "serialver" "servertool" "tnameserv" "unpack200" "wsgen" "wsimport" "xjc" ) | |
for ITEM in ${ITEMS[@]}; do | |
rm -f "/usr/bin/$ITEM" | |
ln -s "/System/Library/Frameworks/JavaVM.framework/Commands/$ITEM" "/usr/bin/$ITEM" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment