#!/bin/sh -e basedir=/usr/lib/jvm/java-7-oracle-1.7.0.45 basediralias=/usr/lib/jvm/java-7-oracle jre_tools='ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv' for type in client server; do rm -f $basedir/jre/lib/amd64/$type/classes.jsa done if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then for i in $jre_tools; do update-alternatives --remove $i $basediralias/jre/bin/$i done if which update-binfmts >/dev/null; then # try to remove and ignore the error if [ -e /var/lib/binfmts/oracle-java7 ]; then update-binfmts --package oracle-java7 \ --remove jar /usr/bin/jexec || true fi fi update-alternatives --remove jexec $basediralias/jre/lib/jexec fi #DEBHELPER#