0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# The contents of this file are subject to the terms
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# of the Common Development and Distribution License
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# (the License). You may not use this file except in
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# compliance with the License.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# You can obtain a copy of the License at
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# https://opensso.dev.java.net/public/CDDLv1.0.html or
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# See the License for the specific language governing
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# permission and limitations under the License.
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# When distributing Covered Code, include this CDDL
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# Header Notice in each file and include the License file
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# If applicable, add the following below the CDDL Header,
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# with the fields enclosed by brackets [] replaced by
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# your own identifying information:
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# "Portions Copyrighted [year] [name of copyright owner]"
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster# $Id: setup,v 1.11 2009/01/28 05:34:46 ww203982 Exp $
138bee0c3c0ebe21d90df485b72cd2b500bbdaf4Andrew Forrest# Portions Copyrighted 2010-2015 ForgeRock AS.
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Majorif [ -z "$JAVA_HOME" ]; then
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster echo "Please define JAVA_HOME environment variable before running this program"
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster echo "setup program will use the JVM defined in JAVA_HOME for all the CLI tools"
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster echo "The defined JAVA_HOME environment variable is not correct"
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster echo "setup program will use the JVM defined in JAVA_HOME for all the CLI tools"
0a99555401a033704f1f171baab6db11fb5528f2Allan Fosterif [ -z $AWK ]; then
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster echo "setup fails because awk is not found"
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter MajorJAVA_VER=`$JAVA_HOME/bin/java -version 2>&1 | $AWK -F'"' '{print $2}'`
0a99555401a033704f1f171baab6db11fb5528f2Allan Foster echo "This program is designed to work with 1.4 or newer JRE."
ef957cfcdd1da08a4fb4b7394ee4a9337269f730James PhillpottsCLASSPATH="$CLASSPATH:${unix.setup.classpath}"
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Major$JAVA_HOME/bin/java -D"load.config=yes" -D"help.print=$help_print" \
79943d71bcf8d4933e74f29a1b0e87f8898508cbPeter Major -D"path.AMConfig=$path_AMConfig" -D"path.debug=$path_debug" \