#!/bin/sh echo "Running The Gatherer..." if [ "x$GSDLHOME" = "x" ] ; then echo "Setting GSDLHOME..." pushd "**GSDLHOME**" source setup.bash popd fi # -Xms32M To set minimum memory # -Xmx32M To set maximum memory # -verbose:gc To set garbage collection messages # -Xincgc For incremental garbage collection # -Xprof Function call profiling # -Xloggc: Write garbage collection log java -cp classes/:GLI.jar:lib/apache.jar:lib/calpa.jar:lib/jp.jar:lib/polloxml.jar:lib/qfslib.jar:lib/skinlf.jar:lib/nanoxml.jar org.greenstone.gatherer.Gatherer -gsdl $GSDLHOME -library **LIBRARYPATH** $* echo "Done!"