when JAVA_HOME not set, try using the JRE provided with windows