Fix bug no JAVA_HOME, but available java command on PATH variable
rollback