I see I have to set the JAVA6_HOME value as a property on the command line which invokes gradlew.
It would be handy if it could pick it up from an environment variable?