#!/bin/sh
#
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation version
# 2.1 of the License.
#                                                                                 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#                                                                                 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
# END COPYRIGHT BLOCK

JAVA=`which java`
if [ -z "$JAVA" -o ! -x "$JAVA" ]
then
  echo "$0: The java program is not in your path, or is not executable.";
  exit 1
fi

CLASSDEST=/usr/share/java
LD_LIBRARY_PATH=/usr/lib64
export LD_LIBRARY_PATH

#
# Launch the Console
#
java  -cp /usr/lib/java/jss4.jar:/usr/share/java/ldapjdk.jar:$CLASSDEST/idm-console-base.jar:$CLASSDEST/idm-console-mcc.jar:$CLASSDEST/idm-console-mcc_en.jar:$CLASSDEST/idm-console-nmclf.jar:$CLASSDEST/idm-console-nmclf_en.jar:$CLASSDEST/centos-idm-console-1.0.1_en.jar -Djava.library.path=/usr/lib64 -Djava.util.prefs.systemRoot="$HOME/.centos-idm-console" -Djava.util.prefs.userRoot="$HOME/.centos-idm-console" com.netscape.management.client.console.Console "$@"
