#!/bin/sh JARFOLDER=$SOLARVERSION/$INPATH/bin$UPDMINOREXT SOLVER_LIB=$SOLARVERSION/$INPATH/lib$UPDMINOREXT myCLASSPATH=$JARFOLDER/OOoRunner.jar:$JARFOLDER/ridl.jar:$JARFOLDER/unoil.jar:$JARFOLDER/jurt.jar:$JARFOLDER/juh.jar:$JARFOLDER/java_uno.jar myCLASSPATH=$myCLASSPATH:$SOLVER_LIB:/net/unoapi/export/unoapi/bin/mysql.jar if [ -n "$JAVAI" ]; then JAVABIN=$JAVAI elif [ -n "$JAVA_HOME" ]; then if [ "$OS$CPUNAME$CPU" = SOLARISSPARCU ]; then JAVABIN=$JAVA_HOME/bin/sparcv9/java else JAVABIN=$JAVA_HOME/bin/java fi else echo "please set environment variable JAVA_HOME" exit 1 fi if [ x${USER}x = xx ]; then if [ x${LOGNAME}x = xx ]; then echo "ERROR: could not determine username. Please export variable USER" >&2 exit $EXIT_FAILURE else USER=$LOGNAME export USER fi fi PARAM="-cs pipe,name=$USER -SRC_ROOT $SRC_ROOT" if [ -n "$RUNNERPROPS" ]; then PARAM="$PARAM -ini $RUNNERPROPS" fi COMMAND="$JAVABIN -Xmx120m -cp $myCLASSPATH org.openoffice.Runner $PARAM $*" echo $COMMAND $COMMAND