#!/bin/sh

# Note that the JAR MANIFEST points to the locations of the
# required libs on Debian so no setting of Classpath is needed here.
# For the same reason, the JAR you find in this package is not going to be
# happy running outside Debian.

# Actually, I do want to add ~/rdp_classifier/ to the CP if it exists
if [ -e "$HOME/rdp_classifier/data/" ] ; then
    CLASSPATH="$CLASSPATH:$HOME/rdp_classifier/"
    CLASSPATH="${CLASSPATH#:}"
    export CLASSPATH
fi

JAR=/usr/share/rdp-classifier/rdp_classifier.jar

exec java -Xms512M -Xmx512M -jar "$JAR" "$@"
