#! /bin/ksh
#
#-----------------------------------------------------------------------
# i apologise right now if this shell script does not work.  i do not
# have access to a unix system, so i am unable to test it.  if you do
# need to make modifications to this script file to get it work, i
# would very appreciate it if you emailed me the changes.  thanks.
#
# this shell script depends on the the jre command being in your path
#-----------------------------------------------------------------------
#
PRG=`whence $0` >/dev/null 2>&1
J_HOME=`dirname $PRG`/..

# we explicitly do not want the environment's classpath and java_home
unset JAVA_HOME

if [ -z "$JAVA_HOME" ] ; then
    export JAVA_HOME
    JAVA_HOME=$J_HOME
fi

CLASSPATH="${CLASSPATH-.}"
if [ -z "${CLASSPATH}" ] ; then
    CLASSPATH="$JAVA_HOME/roller.jar:$JAVA_HOME/swingall.jar"
else
    CLASSPATH="$CLASSPATH:$JAVA_HOME/roller.jar:$JAVA_HOME/swingall.jar"
fi

export CLASSPATH
export LD_LIBRARY_PATH

cd $J_HOME

exec jre rogerta.tools.DiceRoller $*