#!/bin/sh

if test "x$RTM_JAVA_ROOT" = "x" ; then
    echo "Environment variable RTM_JAVA_ROOT is not set."
    echo "Please specify the OpenRTM-aist installation directory."
    echo "Abort."
    exit 1
fi

export CLASSPATH=.:$RTM_JAVA_ROOT/jar/OpenRTM-aist-1.0.0.jar:$RTM_JAVA_ROOT/jar/commons-cli-1.1.jar:$RTM_JAVA_ROOT/jar/rtcd.jar

rtcdpath=`which rtcd_java`
#java -jar $RTM_JAVA_ROOT/jar/rtcd.jar -f $(dirname $rtcdpath)/rtcd_java.conf ${1+"$@"}
java rtcd.rtcd -f $(dirname $rtcdpath)/rtcd_java.conf ${1+"$@"}


