aboutsummaryrefslogtreecommitdiff
path: root/android/gradlew
diff options
context:
space:
mode:
Diffstat (limited to 'android/gradlew')
-rwxr-xr-xandroid/gradlew2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/gradlew b/android/gradlew
index 83f2acfdc..25e0c1148 100755
--- a/android/gradlew
+++ b/android/gradlew
@@ -98,7 +98,7 @@ 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.
+ command -v java >/dev/null || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."