#!/bin/bash
BASEDIR=$(dirname "$0")
java -Xmx64m -jar $BASEDIR/zonkybot-app-${project.version}.jar "$@"

#!/bin/bash
BASEDIR=$(dirname "$0")
$JAVA_HOME/bin/java -Xmx64m -jar $BASEDIR/zonkybot-app-${project.version}.jar "$@"

Use JAVA_HOME in the Shell script
Use JAVA_HOME in the Shell script
