make sure JAVA_HOME is set.