Fixbug when not set JAVA_HOME to use Java JRE