diff options
Diffstat (limited to 'gradlew')
-rwxr-xr-x | gradlew | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -130,10 +130,13 @@ location of your Java installation." | |||
130 | fi | 130 | fi |
131 | else | 131 | else |
132 | JAVACMD=java | 132 | JAVACMD=java |
133 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | 133 | if ! command -v java >/dev/null 2>&1 |
134 | then | ||
135 | die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. | ||
134 | 136 | ||
135 | Please set the JAVA_HOME variable in your environment to match the | 137 | Please set the JAVA_HOME variable in your environment to match the |
136 | location of your Java installation." | 138 | location of your Java installation." |
139 | fi | ||
137 | fi | 140 | fi |
138 | 141 | ||
139 | # Increase the maximum file descriptors if we can. | 142 | # Increase the maximum file descriptors if we can. |