#!/bin/bash

# To use a java other than the default version on the system adjust by
# by commentting/uncommenting and/or altering the desired JAVA line. 
#
# It is recommended that you use SUN's latest java, which is generally 
# installed into the default location:
#JAVA="/usr/java/latest/bin/java"
# 
# However, some linux systems come with other java (or other install location)
# which is why the default is to try to use the system default. Note, however,
# that GNU's java is rather buggy and can cause trouble...
JAVA="java"

# Here you can specify the options passed to the Java Runtime Environment
# For 64-bit machines use first line instead of second...
# Also, adjust the -Xmx value to reflect the amount of memory in your
# system that you wish to make available to java.
#
#JAVAOPTS="-d64 -server -Xmx4000M"
JAVAOPTS="-server -Xbatch -Xmx1000M"

NAME=$0

if [ -L $NAME ]; then
        NAME=`readlink -f $NAME`
fi

CRUSH=`dirname $NAME`
export CRUSH

# This line defines where java will look for the relevant source files. Leave
# it as is, unless you have a good reason to change it...
declare -x CLASSPATH="$CRUSH/crush.jar:$CRUSH/fits.jar:$CRUSH/bin"

