#! /bin/sh

name=$0
BD=`dirname $name`
JAR=`ls -r $BD/../share/java/org-lsst-ccs-drivers-rcm-*.jar`
CP=${JAR//$'\n'/:}
LDP=$BD/../lib/jni:$BD/../lib
export LD_LIBRARY_PATH=$LDP 
export DYLD_LIBRARY_PATH=$LDP
arch -i386 java -Djava.library.path=$LDP -cp $CP org.lsst.ccs.drivers.rcm.TestReg
