Can't Install

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:

  1. 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?
  2. What does “server mode is not available” mean? How do I fix this?
  3. 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?

C:\Programs\OpenHAB2>set path
Path=C:\Programs\Zulu\zulu8.30.0.1-jdk8.0.172-win_i686\bin;C:\Windows\system32;C
:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C
:\Users\RowanB.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Program Files (x
86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Microsoft SQL
Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:
\Program Files\Git\cmd;c:\Program Files (X86)\PHP;C:\Program Files\Microsoft SQL
Server\Client SDK\ODBC\130\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Ser
ver\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\DTS\Binn;C:\Progr
am Files\TortoiseSVN\bin;C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\TShe
ll\TShell;C:\Program Files\php-7.0.8\php.exe;C:\PHP\Phars;C:\Program Files\dotn
et;C:\Program Files\nodejs;C:\Users\RowanB\AppData\Local\Programs\Python\Pytho
n36\Scripts;C:\Users\RowanB\AppData\Local\Programs\Python\Python36;C:\Users\Ro
wanB\AppData\Roaming\npm;C:\Program Files (x86)\Nmap
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

C:\Programs\OpenHAB2>set java_home
JAVA_HOME=C:\Programs\Zulu\zulu8.30.0.1-jdk8.0.172-win_i686\bin

Thanks - Rowan

My JAVA_HOME points to the directory that contains the bin folder, so I would try setting it to:

JAVA_HOME=C:\Programs\Zulu\zulu8.30.0.1-jdk8.0.172-win_i686

And also try to remove \bin from your PATH too

What’s strange is that OH is still seeing the Oracle version of Java, not the Zulu install.

I think you need to get the Oracle Java Hotspot installed uninstalled on your system.

Squid

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):

HKEY_CLASSES_ROOT.java/(Default) = {REG_SZ} (value not set)
HKEY_CLASSES_ROOT.java/PerceivedType = [REG_SZ} text
HKEY_CLASSES_ROOT.java\PersistentHandler(Default) = [REG_SZ] JSfile
HKEY_CLASSES_ROOT.java\PersistentHandler\Content Type = [REG_SZ} application/javascript
HKEY_CLASSES_ROOT.java\PersistentHandler\PerceivedType = [REG_SZ] application
HKEY_CLASSES_ROOT\Chilkat_9_5_0.JavaKeyStore(Default) = [REG_SZ] JavaKeyStore v9.5.0
HKEY_CLASSES_ROOT\Chilkat_9_5_0.JavaKeyStore\CLSID(Default) = REG_SZ {0B7700DB-79D8-40FB-95B9-03FCC9646439}
HKEY_CLASSES_ROOT\Chilkat_9_5_0.JavaKeyStore\CurVer(Default) = REG_SZ Chilkat_9_5_0.JavaKeyStore.1
HKEY_CLASSES_ROOT\Chilkat_9_5_0.JavaKeyStore.1(Default) = [REG_SZ] JavaKeyStore v9.5.0
HKEY_CLASSES_ROOT\Chilkat_9_5_0.JavaKeyStore.1\CLSID(Default) = REG_SZ {0B7700DB-79D8-40FB-95B9-03FCC9646439}
HKEY_CLASSES_ROOT\Chilkat_9_5_0.JavaKeyStore.1\Insertable(Default) = REG_SZ (value not set)
HKEY_CLASSES_ROOT\CLSID{3050F3B2-98B5-11CF-BB82-00AA00BDCE0B}(Default) = REG_SZ Microsoft HTML Javascript Pluggable Protocol
HKEY_CLASSES_ROOT\CLSID{3086F493-272E-4C44-BC13-046503D16722}(Default) = [REG_SZ] Microsoft JavaScript Profiler
HKEY_CLASSES_ROOT\CLSID{5852F5ED-8BF4-11D4-A245-0080C6F74284}\InprocServer32(Default) = REG_SZ C:\Program Files\Java\jre1.8.0_121\bin\wsdetect.dll
HKEY_CLASSES_ROOT\CLSID{5852F5ED-8BF4-11D4-A245-0080C6F74284}\InprocServer32\ThreadingModel = REG_SZ Apartment
HKEY_CLASSES_ROOT\CLSID{5852F5ED-8BF4-11D4-A245-0080C6F74284}\ProgID(Default) = REG_SZ JavaWebStart.isInstalled.1.8.0.0
HKEY_CLASSES_ROOT\CLSID{5852F5ED-8BF4-11D4-A245-0080C6F74284}\VersionIndependentProgID(Default) = REG_SZ JavaWebStart.isInstalled
HKEY_CLASSES_ROOT\CLSID{5905EDD4-248C-4237-9DD9-684D90B731FA}(Default) = REG_)SZ Microsoft VSPerf ETW JavaScript Profiler

Thanks - Rowan

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

Rowan

1 Like