#!/bin/sh

#
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
# SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
#

#     @(#)rmiregistry.sh	1.12 01/12/12
#
# Copyright (c) 1997-8 by Sun Microsystems, Inc.
# All rights reserved.
#
# source a script that extracts RUNTIME_ARGS and APP_ARGS 
# 
. "`dirname \"$0\"`"/.extract_args 

#
# Run the registry
#
if [ -f \"`dirname "$0"`\"/java ]
then
  eval exec \"`dirname "$0"`\"/java "$RUNTIME_ARGS" sun.rmi.registry.RegistryImpl "$APP_ARGS"
else
  eval exec \"`dirname "$0"`\"/jre "$RUNTIME_ARGS" sun.rmi.registry.RegistryImpl "$APP_ARGS"
fi
