@@ -43,6 +49,26 @@ if [ "$RUN_STANDALONE" = "false" ]; then
...
@@ -43,6 +49,26 @@ if [ "$RUN_STANDALONE" = "false" ]; then
exit 1
exit 1
fi
fi
# Make sure there exists a java executable, it may not be allways the case
if[-z"$JAVA"];then
echo"ERROR: No Java executable found in current PATH: $PATH">&2
echo"If you actually have java installed on the system make sure the executable is in the aforementioned path and that 'type -p java' returns the java executable path">&2
exit 1
fi
# Work out the JAVA version we are working with:
JAVA_VERSION=$($JAVA-version 2>&1 | sed-n';s/.* version "\(.*\)\.\(.*\)\..*"/\1\2/p;')