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

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

# 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:\
.

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

# Run server 64-bit VM with assertions enabled and 2.5G max Java heap.
java -server -d64 -ea -Xmx2500m \
-Djava.util.logging.config.file=$HOME/.java_logging_config \
-Djava.library.path=$JAVA_LIBRARY_PATH \
-Dapple.awt.graphicsUseQuartz=true \
$*
