#!/bin/sh

#
# Check for properties file
#
if [ ! -r "$JAVA_HOME/lib/rmic.properties" ] ; then
    echo "Could not read properties file: $JAVA_HOME/lib/rmic.properties" 1>&2 
    exit 1
fi

#
# source a script that extracts RUNTIME_ARGS and APP_ARGS
#
. `dirname $0`/.extract_args

#
# Run the stub compiler
#
$JAVA_HOME/bin/java $RUNTIME_ARGS sun.rmi.rmic.Main $APP_ARGS
