#!/bin/sh

##############################################################
###           Moneydance Unix startup script
### To use this script, modify the lines below so that they
### suit your system
##############################################################


# Change the line below so that it refers to the directory where 
# you installed the moneydance.jar and license.jar files
MONEYDANCE_LOCATION=/usr/local/moneydance


# Change the line below so that it refers to the location where you
# installed the swingall.jar file.  This is usually the same place
# that the moneydance.jar and license.jar files are located, but
# in some cases you may want to use a separate version of swing 
# than the one included with Moneydance.
SWING_LOCATION=${MONEYDANCE_LOCATION}


# Change this line so that it refers to the java or jre executable
# on your system.  Some systems will have java located at
# /usr/bin/java, /usr/local/jdk1.1.7/bin/java, or /usr/local/bin/java
JAVA_EXE=/usr/local/java/bin/jre


# Comment out the following 2 lines only if you have a JIT compiler
# that works.  Note: The default JIT compiler distributed with 
# the Sun JDK and JRE still has bugs, but SHUjit and TYA seem 
# to work well on Linux and FreeBSD.
JAVA_COMPILER=NONE
export JAVA_COMPILER


CLSSP=${MONEYDANCE_LOCATION}/moneydance.jar:
CLSSP=${MONEYDANCE_LOCATION}/license.jar:${CLSSP}
CLSSP=${SWING_LOCATION}/swingall.jar:${CLSSP}

unset CLASSPATH

CMD="${JAVA_EXE} -cp ${CLSSP} Moneydance $@"

echo ${CMD}
exec ${CMD}


