Just for safety's sake, I hope you haven't really capitalized "JAVA_HOMe" literally. Even under Windows,
Java can sometimes get cranky about upper/lower case.
What happens when you issue this command at the prompt:
%JAVA_HOME$\bin\java -v
The secret of how to be miserable is to constantly expect things are going to happen the way that they are "supposed" to happen.
You can have faith, which carries the understanding that you may be disappointed. Then there's being a willfully-blind idiot, which virtually guarantees it.