10 LOCATION=${LOCATION%/*}
12 if [ -z "$JAVA_HOME" ] ; then
13 echo "ERROR: JAVA_HOME environment variable is not set."
16 if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
17 # IBM's JDK on AIX uses strange locations for the executables
18 JAVACMD=$JAVA_HOME/jre/sh/java
20 JAVACMD=$JAVA_HOME/bin/java
24 if [ ! -x "$JAVACMD" ] ; then
25 echo "Error: JAVA_HOME is not defined correctly."
26 echo " We cannot execute $JAVACMD"
30 LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip
32 # add in the dependency .jar files from the lib directory
33 LIBDIR=$LOCATION/../lib
37 # if the directory is empty, then it will return the input string
38 # this is stupid, so case for it
39 if [ "$i" != "${LIBS}" ] ; then
40 LOCALCLASSPATH=$LOCALCLASSPATH:"$i"
44 "$JAVACMD" '-classpath' "$LOCALCLASSPATH" 'edu.internet2.middleware.shibboleth.common.attribute.AttributeAuthorityCLI' "$@"