Skip to content

Commit

Permalink
Improve message when JAVA_HOME not set (#32022)
Browse files Browse the repository at this point in the history
closes #31399
  • Loading branch information
alpar-t committed Jul 21, 2018
1 parent 113d6d5 commit 9f55f03
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ class BuildPlugin implements Plugin<Project> {
// IntelliJ does not set JAVA_HOME, so we use the JDK that Gradle was run with
return Jvm.current().javaHome
} else {
throw new GradleException("JAVA_HOME must be set to build Elasticsearch")
throw new GradleException(
"JAVA_HOME must be set to build Elasticsearch. " +
"Note that if the variable was just set you might have to run `./gradlew --stop` for " +
"it to be picked up. See https://github.com/elastic/elasticsearch/issues/31399 details."
)
}
}
return javaHome
Expand Down

0 comments on commit 9f55f03

Please sign in to comment.