Took code from http://stackoverflow.com/a/11854901/828681 and http://stackoverflow.com/questions/6493856/how-to-programatically-get-all-java-jvm-installed-not-default-one-using-java
for checking listed JRE's on a windows operating system
use better java version detection on windows