#!/bin/bash
# to do -- use an ant script

# This should work, but nxjpc is a little buggy in LeJOS 0.85
#nxjpc EnchantingBridge "$@"

# Therefore, we will run it this way:

if [ ! -n "$NXJ_HOME" ]; then
  echo "The NXJ_HOME environment variable needs to be set before running this."
else
  java -Dnxj.home="$NXJ_HOME" -d32 -Djava.library.path=$NXJ_HOME/bin -cp $NXJ_HOME/lib/pccomm.jar:build/classes: EnchantingBridge "$@"
fi