OpenHAB 2 Beta - Start.bat does not check for 32-Bit Java Runtime on 64-bit Windows

Hi community!

I downloaded the ObenHAB 2 Beta build 723 and started it on my Windows 10 64-Bit Computer. The start.bat showed me a message that it can not find a valid Jave runtime on my Computer. I checked the start.bat script and found that it only tries to find a Java Installation in registry under the registry path “HKLM\SOFTWARE\JavaSoft”. With a 32-bit JRE under a 64-Bit Windows System the correct path in registry would be “HKLM\SOFTWARE\WOW6432Node\JavaSoft”.

So I have two questions:

  1. Does it matter if openHAB 2 runs on a 32-bit JRE?
  2. If the answer to the first question is no, is it possible to extend the start.bat so that it will also work in my constellation (64-bit Windows with 32-bit JRE)?

Your best option is to run 64bit JDK.