neo4j/packaging — pull request #51 by Gekkio (2012-09-27 19:59:48+00:00)
Title: More robust Java detection on Windows (32-bit JVM on 64-bit Windows, etc)

1. Looks for both 64-bit AND 32-bit JREs

2. Works with all JRE directory names
The old version assumed that there is exactly one space character in the name (e.g. "C:\Program Files\Java\jre7")
32-bit JDKs/JREs are installed to "C:\Program Files (x86)\Java", which has two spaces. Also, Java can be installed to a custom directory, so the single space char assumption is not a good idea.

3. Console command uses the detected Java instead of "java" from PATH.