diff --git a/deploy/android_demo/gradlew b/deploy/android_demo/gradlew index cccdd3d517..dfc1f9b7a1 100644 --- a/deploy/android_demo/gradlew +++ b/deploy/android_demo/gradlew @@ -75,11 +75,9 @@ if [ -n "$JAVA_HOME" ] ; then JAVACMD="$JAVA_HOME/bin/java" fi if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME\n\nPlease set the JAVA_HOME variable in your environment to match the location of your Java installation." fi + else JAVACMD="java" which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.