LIBPATH=""
for i in $(ls -d lib/*.jar); do LIBPATH=$LIBPATH$i":"
done

if [ -e ./jre/bin/java ] ; then
    ./jre/bin/java -Xmx512M -cp $LIBPATH at.itsolution.securitylayer.MainLoader at.itsolution.securitylayer.Main $1 $2 $3 $4 $5 $6
else
    java -Xmx512M -cp $LIBPATH at.itsolution.securitylayer.MainLoader at.itsolution.securitylayer.Main $1 $2 $3 $4 $5 $6
fi
