#!/bin/sh
# run junkfind.jar if it can be found
# note:  $JAVA_HOME must be set AND exported before
#        running this script, or
#        it won't be found by this (or any) script.
# sjr 2004

if [ "$JAVA_HOME" != "" ]
        then  Myjava="$JAVA_HOME"/bin/java
        else  Myjava=`which java`
fi
if [ "$Myjava" != "" ]
        then
        echo "Found: Myjava = $Myjava"
        $Myjava -Xmx512m -jar junkfind.jar
        else
        echo "Sorry can't find java on your system."
fi


