The shell script bin/SourceMeter is malformed; environment variable references don't have a trailing '$'. Also, *nix lines end with LF, not CR/LF. A correct version is below:
#! /bin/sh
if [ "$JAVA_HOME" != "" ] ; then
if [ "$JAVACMD" = "" ] ; then
JAVACMD=$JAVA_HOME/bin/java
fi
else
if [ "$JAVACMD" = "" ] ; then
JAVACMD=java
fi
fi
# Either modify the path to...