1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/bash # Java startup helper # if JAVA_HOME is specified, use related version echo "Java run helper" if [ ! -z "$JAVA_HOME" ] ; then echo "JAVA_HOME=$JAVA_HOME" $JAVA_HOME/bin/java "$@" else echo "Java on path" java "$@" fi