Skip to content

Instantly share code, notes, and snippets.

@ryanobjc
Created July 16, 2012 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanobjc/3125150 to your computer and use it in GitHub Desktop.
Save ryanobjc/3125150 to your computer and use it in GitHub Desktop.
#!/bin/sh
VERS=$1
cat > java-remove.sh <<EOF
#!/bin/sh
set -e
for i in java javac jps jstack jmap ; do
update-alternatives --remove \$i /usr/lib/jvm/$VERS/bin/\$i
done
exit 0
EOF
chmod +x java-remove.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment