Remove dependency on JAVA_HOME environment variable being set.