optionally use JAVA_HOME