Here is what happens when I try to run start.bat as administrator:
C:\Programs\OpenHAB2>start.bat
Launching the openHAB runtime…
‘-Dorg.osgi.service.http.port’ is not recognized as an internal or external command, operable program or batch file.
‘-Dorg.osgi.service.http.port.ssl’ is not recognized as an internal or external command, operable program or batch file.
karaf.bat: Ignoring predefined value for KARAF_HOME
WARNING: Running Karaf on a Java HotSpot Client VM because server-mode is not available.
Install Java Developer Kit to fix this.
For more details see http://java.sun.com/products/hotspot/whitepaper.html#client
The system cannot find the path specified.
QUESTIONS ARISING:
It is trying to run the lines starting -D as command lines, which obviously don’t make sense to the command interpreter. What is supposed to stop this happening, and to direct these lines to Java?
What does “server mode is not available” mean? How do I fix this?
Why is it asking me to install JDK? I thought that Zulu included JDK. Or is it still trying to run the Oracle version of Java? If so, how do I stop this happening?
For info, here are the values of my PATH and JAVA_HOME variables. Is there anything wrong with these?
Yes it seems so. But how do I do that? There is no trace of it in the programs and features control panel. And there is a directory C:\Program Files (x86)\Java but it is completely empty.
There are some vales in the registry that mention Java, one or more of which may be causing the trouble, but I’t loath to change these unless I know precisely what I’m doing, for fear of making it worse, not better. In any case, surely installing Zulu should set up any registry values that it needs? Here are the registry values that I’ve found so far (not yet a complete list):
Thanks Gary for this. That was the problem. Having removed the \bin, it starts to work, and I have started configuring it. No doubt I will have many more questions as I proceed, but for now the current problem is solved. Thanks again to everyone who contributed to this thread