#!/bin/sh

echo "This program will help you choose Java programs you want to use for"
echo "the rest of your system - using 'alternatives' mechanism."
echo ""
echo "IMPORTANT NOTE:  because free-java-sdk itself does NOT use the"
echo "   'alternatives' system, your changes will NOT affect which programs"
echo "   are available via wrappers in /usr/lib/fjsdk."
echo ""
echo "Press ENTER after having read the above."
echo

read

ALTS="java javac jar jarsigner javadoc javah javap jdb policytool rmic rmid rmiregistry serialver"

for one in $ALTS; do
  update-alternatives --config $one
done
