Respect JAVA_HOME before searching JDK under "C:/Program Files/Java"
Respect JAVA_HOME before searching JDK under "C:/Program Files/Java"

Fixed https://github.com/bazelbuild/bazel/issues/4722

RELNOTES: None
PiperOrigin-RevId: 187443457

dropbox/bazel,dslomov/bazel-windows,perezd/bazel,dslomov/bazel,meteorcloudy/bazel,twitter-forks/bazel,perezd/bazel,akira-baruah/bazel,ulfjack/bazel,aehlig/bazel,cushon/bazel,davidzchen/bazel,cushon/bazel,perezd/bazel,dslomov/bazel,dslomov/bazel-windows,bazelbuild/bazel,dropbox/bazel,aehlig/bazel,aehlig/bazel,akira-baruah/bazel,dropbox/bazel,bazelbuild/bazel,davidzchen/bazel,safarmer/bazel,safarmer/bazel,perezd/bazel,katre/bazel,aehlig/bazel,twitter-forks/bazel,perezd/bazel,davidzchen/bazel,dslomov/bazel,dslomov/bazel,dslomov/bazel,ButterflyNetwork/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,ulfjack/bazel,meteorcloudy/bazel,aehlig/bazel,twitter-forks/bazel,ulfjack/bazel,katre/bazel,katre/bazel,perezd/bazel,dslomov/bazel-windows,cushon/bazel,twitter-forks/bazel,akira-baruah/bazel,safarmer/bazel,aehlig/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,davidzchen/bazel,werkt/bazel,ulfjack/bazel,dropbox/bazel,meteorcloudy/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,ulfjack/bazel,dropbox/bazel,cushon/bazel,dslomov/bazel-windows,ButterflyNetwork/bazel,meteorcloudy/bazel,meteorcloudy/bazel,perezd/bazel,davidzchen/bazel,safarmer/bazel,ulfjack/bazel,dslomov/bazel,safarmer/bazel,davidzchen/bazel,dslomov/bazel,werkt/bazel,twitter-forks/bazel,werkt/bazel,twitter-forks/bazel,dslomov/bazel-windows,dslomov/bazel-windows,werkt/bazel,twitter-forks/bazel,meteorcloudy/bazel,akira-baruah/bazel,werkt/bazel,davidzchen/bazel,katre/bazel,safarmer/bazel,cushon/bazel,bazelbuild/bazel,akira-baruah/bazel,ButterflyNetwork/bazel,bazelbuild/bazel,ulfjack/bazel,cushon/bazel,katre/bazel,aehlig/bazel,meteorcloudy/bazel,dropbox/bazel,werkt/bazel,katre/bazel