#! /bin/csh -f

################ EDIT HERE

# location of the the swing1.1 jar file
set JFCJAR = /usr/local/Java/swingall.jar

################ END EDIT

# edit here if not running from the install directory
set XFILES=./xfiles.jar
set JPYTHON=./jpython.jar
# tell jpython to load xfiles.py from .
set PYTHONPATH="-Dpython.path=."
# need DefaultMutableTreeNode from swing
setenv CLASSPATH "${XFILES}:${JPYTHON}:${JFCJAR}"

# increase this for huge file tree
set MEM=-mx32m

# OPTIONAL: only used if doing native link detection:
# path for ld to load nativeFile.so 
setenv LD_LIBRARY_PATH .


set XFILES_SERVER = `hostname`
echo -n "'" ${XFILES_SERVER} "' "
echo should be the spelling of the serverhost argument to xfilesClient


set echo

# commandline for jdk1.1
java ${MEM} ${PYTHONPATH} -DXFILES=rmi://${XFILES_SERVER}:9753/XF XfilesServer

# commandline for jdk1.2/2.0
#java ${MEM} ${PYTHONPATH} -cp ${CLASSPATH} -DXFILES=rmi://${XFILES_SERVER}:9753/XF XfilesServer

