#!/bin/sh
#############################################################################
# Dave Hale's Jython script for Mac OS X

# Edit these variables to point to relevant directories
export JAVA_VERSION=1.6.0 # on Mac OS, which Java version?
export MINES_JTK_HOME=$HOME/dhale/jtk/trunk
export JYTHON_HOME=$HOME/dhale/jython250

# Where will Java look for classes?
export CLASSPATH=\
$MINES_JTK_HOME/build/jar/edu_mines_jtk.jar:\
$MINES_JTK_HOME/jar/gluegen-rt.jar:\
$MINES_JTK_HOME/jar/jogl.jar:\
$MINES_JTK_HOME/jar/junit.jar:\
$JYTHON_HOME/jython.jar:\
.

# Where are the relevant native (non-Java) code libraries?
export JAVA_LIBRARY_PATH=\
$MINES_JTK_HOME/lib/macosx/x64

java -server -d64 -ea -Xmx2500m \
-Djava.library.path=$JAVA_LIBRARY_PATH \
-Djava.util.logging.config.file=$HOME/.java_logging_config \
-Dapple.awt.graphicsUseQuartz=true \
-Dpython.home=$JYTHON_HOME \
org.python.util.jython \
$*
