1008N/A: DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1008N/A: Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
1008N/A: The contents of this file are subject to the terms
1008N/A: of the Common Development and Distribution License
1008N/A: (the License). You may not use this file except in
1008N/A: compliance with the License.
1008N/A: You can obtain a copy of the License at
1008N/A: See the License for the specific language governing
1008N/A: permission and limitations under the License.
1008N/A: When distributing Covered Code, include this CDDL
1008N/A: Header Notice in each file and include the License file
1008N/A: If applicable, add the following below the CDDL Header,
1008N/A: with the fields enclosed by brackets [] replaced by
1008N/A: your own identifying information:
1008N/A: "Portions Copyrighted [year] [name of copyright owner]"
1008N/Aif not "%JAVA_HOME%" == "" goto checkJavaHome
1008N/Aecho Please define JAVA_HOME environment variable before running this program
1008N/Aecho setup program will use the JVM defined in JAVA_HOME for all the CLI tools
1008N/Aecho The defined JAVA_HOME environment variable is not correct
1008N/Aecho setup program will use the JVM defined in JAVA_HOME for all the CLI tools
CALL :GET_VERSION_NUM %java_version:"1.= %
CALL :GET_MID_VERSION_NUM %java_version:.= %
IF "%java_version%" == "0" goto invalidJavaVersion
IF "%java_version%" == "1" goto invalidJavaVersion
IF "%java_version%" == "2" goto invalidJavaVersion
IF "%java_version%" == "3" goto invalidJavaVersion
echo This program is designed to work with 1.4 or newer JRE.
IF "%1" == "-h" SET help_print=yes
IF "%1" == "--help" SET help_print=yes
IF "%1" == "-l" SET path_log=%~2
IF "%1" == "--log" SET path_log=%~2
IF "%1" == "-d" SET path_debug=%~2
IF "%1" == "--debug" SET path_debug=%~2
IF "%1" == "-p" SET path_AMConfig=%~2
IF "%1" == "--path" SET path_AMConfig=%~2
IF "%3" == "-l" SET path_log=%~4
IF "%3" == "--log" SET path_log=%~4
IF "%3" == "-d" SET path_debug=%~4
IF "%3" == "--debug" SET path_debug=%~4
IF "%3" == "-p" SET path_AMConfig=%~4
IF "%3" == "--path" SET path_AMConfig=%~4
IF "%5" == "-l" SET path_log=%~6
IF "%5" == "--log" SET path_log=%~6
IF "%5" == "-d" SET path_debug=%~6
IF "%5" == "--debug" SET path_debug=%~6
IF "%5" == "-p" SET path_AMConfig=%~6
IF "%5" == "--path" SET path_AMConfig=%~6
set CLASSPATH="@CONFIG_DIR@"
set CLASSPATH="%CLASSPATH%;resources"