#!/bin/sh
 
APPDIR="$(dirname -- "${0}")"

# includes java/* in case a Java install is available
for LIB in \
    java/lib/rt.jar \
    java/lib/tools.jar \
    lib/*.jar \
    ;
do
    CLASSPATH="${CLASSPATH}:${APPDIR}/${LIB}"
done
export CLASSPATH

export PATH="${APPDIR}/java/bin:${PATH}"

#java processing.app.Commander $*
# if you know a better way to do this, submit it to dev.processing.org/bugs
java processing.app.Commander "$1" "$2" "$3" "$4" "$5" "$6" "$7" "$8" "$9"