Hello OpenHab,
I am sorry for the beginner plea for help, but I have had an awful day trying to setup OpenHab. My first attempt was on the Raspberry Pi 3 using the predefined image but it failed to unpack/run. I then tried to install it manually, but ran into other issues (DNS?) that I couldn’t resolve.
Eventually I gave up with the with Pi and hoped that a Windows install would be easy so I could get to actually trying the app. Unfortunately, I haven’t had any luck there either. I followed the instructions and downloaded the Zulu Java, installed it, and then did the same for OpenHab. It fails to run. Note that the command window was run with Admin rights. The printout is here:
C:\OpenHAB2>echo %JAVA_HOME%
C:\Program Files\Zulu\zulu-9
C:\OpenHAB2>start.bat
Launching the openHAB runtime…
karaf.bat: Ignoring predefined value for KARAF_HOME
-Djava.endorsed.dirs=C:\Program Files\Zulu\zulu-9\jre\lib\endorsed;C:\Program Fi
les\Zulu\zulu-9\lib\endorsed;C:\OpenHAB2\runtime\bin…\lib\endorsed is not supp
orted. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I then changed to Oracle Java, but OpenHab still fails to run. In this case, it hangs. (I waited over 30 minutes, thinking that the first start might be slow.)
C:\OpenHAB2>echo %JAVA_HOME%
C:\Program Files (x86)\Java\jre1.8.0_161
C:\OpenHAB2>start.bat
Launching the openHAB runtime…
karaf.bat: Ignoring predefined value for KARAF_HOME
WARNING: Running Karaf on a Java HotSpot Client VM because server-mode is not av
ailable.
Install Java Developer Kit to fix this.
For more details see http://java.sun.com/products/hotspot/whitepaper.html#client
Terminate batch job (Y/N)? y
C:\OpenHAB2>
I realize this is probably a very basic problem to those familiar with OpenHab, but I can’t find anything (I tried plowing threw the forums, but find forums hard to use. Google searches didn’t help either.)
Is there a Java problem? There could be now since 2 are installed, but only one is referenced in the “JAVA_HOME” environmental variable.
I appreciate any input that people could provide.
Thank you!