--- processing.orig	2008-06-20 16:07:46.000000000 +1000
+++ processing	2008-06-20 16:10:07.000000000 +1000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-APPDIR=$(dirname "$0")
+APPDIR=%%PREFIX%%/libexec/processing
 
 # as of 0109, now using all relative paths and doing a cd to the 
 # processing folder on run, because there are too many dependencies 
@@ -17,14 +17,14 @@
 #PATH=`pwd`/`dirname $0`:`pwd`/java/bin:${PATH}
 #PATH=$APPDIR:$APPDIR/java/bin:${PATH}
 #echo $PATH
-PATH=.:java/bin:${PATH}
-export PATH
+#PATH=.:java/bin:${PATH}
+#export PATH
 
 # test to see if jikes is operable. i'm a crappy bash scripter
 # so if someone knows a more elegant way to do this, let me know.
 #
 #echo $APPDIR/jikes
-"$APPDIR/jikes" -version 1> /dev/null 2> /dev/null
+jikes -version 1> /dev/null 2> /dev/null
 # if stmt modified as per bug #373
 if [ $? -eq 0 ]
 then 
