#! /bin/sh
#################################################################
## IBM Confidential
##
## OCO Source Materials
##
## IBM Cognos Products: CAMCrypto
##
## (C) Copyright IBM Corp. 2005, 2022
##
## The source code for this program is not published or otherwise
## divested of its trade secrets, irrespective of what has been
## deposited with the U.S. Copyright Office.
#################################################################

if [ "$JAVA_HOME" = "" ]
then
	JAVA_CMD=../ibm-jre/jre/bin/java
else
	JAVA_CMD=$JAVA_HOME/bin/java
fi

echo "Using "$JAVA_CMD

if [ ! -f "$JAVA_CMD" ]
then
	echo "Unable to locate a JRE. Please specify a valid JAVA_HOME environment variable."
	exit 0
fi

$JAVA_CMD $JAVA_OPTS -Dorg.slf4j.simpleLogger.defaultLogLevel=ERROR -jar ThirdPartyCertificateTool.jar "$@"