openHAB2 new Win 10 Installation failed - help please

Hi,
Been trying for three days to get OH2 working, without success. Have checked the forum and web searched, but no luck. I have followed the instructions and installed a clean build twice.

It’s a new installation on windows 10, following the software / UI load , I did an install and got the following;

Event.log
2017-09-19 07:24:19.290 [ExtensionEvent ] - Extension ‘package-standard’ has been installed.
2017-09-19 07:24:36.492 [ExtensionEvent ] - Extension ‘ui-basic’ has been installed.
2017-09-19 07:24:36.565 [ExtensionEvent ] - Extension ‘ui-habpanel’ has been installed.
2017-09-19 07:24:36.637 [ExtensionEvent ] - Extension ‘ui-paper’ has been installed.

Install
C:\Windows\System32>C:\openHAB2\userdata\bin\openHAB2-service.bat install
wrapper | openHAB2 installed.

C:\Windows\System32>net start "openHAB2"
The openHAB2 service is starting.
The openHAB2 service could not be started.

A system error has occurred.

System error 1067 has occurred.

The process terminated unexpectedly.

C:>

Check Sys Variable
C:>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.8.0_144\

C:>

Check wrapper.conf
#*******************************************************

openHAB2-wrapper.conf for Windows Service Installation

#*******************************************************

openHAB installation dir (Adapt this first setting to your system)

set.default.OPENHAB_HOME=C:\openHAB2

C:\openHAB2\userdata\logs\wrapper.log

STATUS | wrapper | 2017/09/19 07:38:49 | openHAB2 installed.
STATUS | wrapper | 2017/09/19 07:39:10 | --> Wrapper Started as Service
STATUS | wrapper | 2017/09/19 07:39:11 | Launching a JVM…
FATAL | wrapper | 2017/09/19 07:39:11 | Unable to execute Java command. The system cannot find the file specified. (0x2)
FATAL | wrapper | 2017/09/19 07:39:11 | “%JAVA_HOME%\bin\java” -Dkaraf.home=“C:\openHAB2\runtime” -Dkaraf.base=“C:\openHAB2\userdata” -Dkaraf.data=“C:\openHAB2\userdata” -Dkaraf.etc=“C:\openHAB2\userdata\etc” -Dcom.sun.management.jmxremote -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -Djava.endorsed.dirs="%JAVA_HOME%\jre\lib\endorsed;%JAVA_HOME%\lib\endorsed;C:\openHAB2\runtime\lib\endorsed" -Djava.ext.dirs="%JAVA_HOME%\jre\lib\ext;%JAVA_HOME%\lib\ext;C:\openHAB2\runtime\lib\ext" -Dopenhab.home=“C:\openHAB2” -Dopenhab.conf=“C:\openHAB2\conf” -Dopenhab.runtime=“C:\openHAB2\runtime” -Dopenhab.userdata=“C:\openHAB2\userdata” -Dopenhab.logdir=“C:\openHAB2\userdata\logs” -Dfelix.cm.dir=“C:\openHAB2\userdata\config” -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Xmx512m -Djava.library.path=“C:\openHAB2\userdata\lib\wrapper\” -classpath “C:\openHAB2\runtime\lib\boot\org.apache.karaf.diagnostic.boot-4.0.8.jar;C:\openHAB2\runtime\lib\boot\org.apache.karaf.jaas.boot-4.0.8.jar;C:\openHAB2\runtime\lib\boot\org.apache.karaf.main-4.0.8.jar;C:\openHAB2\runtime\lib\boot\org.osgi.core-6.0.0.jar;C:\openHAB2\userdata\lib\wrapper\karaf-wrapper-main.jar;C:\openHAB2\userdata\lib\wrapper\karaf-wrapper.jar” -Dwrapper.key=“u_BmiKk32mIMqZda” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=2472 -Dwrapper.version=“3.2.3” -Dwrapper.native_library=“wrapper” -Dwrapper.service=“TRUE” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.apache.karaf.wrapper.internal.service.Main
FATAL | wrapper | 2017/09/19 07:39:11 | Critical error: wait for JVM process failed

Any help would be appreciated, thanks

Kevin

Does C:\Program Files\Java\jdk1.8.0_144\ exist? Does it have a /bin/java folder? Is there a java.exe in that folder?

The problem is it cannot find your Java.

Hi Rich,
Thank you for the quick reply.

Yes, the path and exe do exist;

I have checked the folder/file permissions and they looked o.k. (read only). I set them to full access, just as a test.

I ran jmc.exe successfully, from the same folder.

Tried again (Command window - as Administrator) - same result as previously.

The wrapper.log shows:

STATUS | wrapper | 2017/09/19 18:02:34 | --> Wrapper Started as Service
STATUS | wrapper | 2017/09/19 18:02:34 | Launching a JVM…
FATAL | wrapper | 2017/09/19 18:02:35 | Unable to execute Java command. The system cannot find the file specified. (0x2)
FATAL | wrapper | 2017/09/19 18:02:35 | “%JAVA_HOME%\bin\java” -Dkaraf.home=“C:\openHAB2\runtime” -Dkaraf.base=“C:\openHAB2\userdata” -Dkaraf.data=“C:\openHAB2\userdata” -Dkaraf.etc=“C:\openHAB2\userdata\etc” -Dcom.sun.management.jmxremote -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -Djava.endorsed.dirs="%JAVA_HOME%\jre\lib\endorsed;%JAVA_HOME%\lib\endorsed;C:\openHAB2\runtime\lib\endorsed" -Djava.ext.dirs="%JAVA_HOME%\jre\lib\ext;%JAVA_HOME%\lib\ext;C:\openHAB2\runtime\lib\ext" -Dopenhab.home=“C:\openHAB2” -Dopenhab.conf=“C:\openHAB2\conf” -Dopenhab.runtime=“C:\openHAB2\runtime” -Dopenhab.userdata=“C:\openHAB2\userdata” -Dopenhab.logdir=“C:\openHAB2\userdata\logs” -Dfelix.cm.dir=“C:\openHAB2\userdata\config” -Dorg.osgi.service.http.port=8080 -Dorg.osgi.service.http.port.secure=8443 -Xmx512m -Djava.library.path=“C:\openHAB2\userdata\lib\wrapper\” -classpath “C:\openHAB2\runtime\lib\boot\org.apache.karaf.diagnostic.boot-4.0.8.jar;C:\openHAB2\runtime\lib\boot\org.apache.karaf.jaas.boot-4.0.8.jar;C:\openHAB2\runtime\lib\boot\org.apache.karaf.main-4.0.8.jar;C:\openHAB2\runtime\lib\boot\org.osgi.core-6.0.0.jar;C:\openHAB2\userdata\lib\wrapper\karaf-wrapper-main.jar;C:\openHAB2\userdata\lib\wrapper\karaf-wrapper.jar” -Dwrapper.key=“SsgzvsZSAokWTuEH” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=4580 -Dwrapper.version=“3.2.3” -Dwrapper.native_library=“wrapper” -Dwrapper.service=“TRUE” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.apache.karaf.wrapper.internal.service.Main
FATAL | wrapper | 2017/09/19 18:02:35 | Critical error: wait for JVM process failed

Any ideas?

Regards

Kevin
Visit Topic https://community.openhab.org/t/openhab2-new-win-10-installation-failed-help-please/34349/2 or reply to this email to respond.

To unsubscribe from these emails, click here https://community.openhab.org/email/unsubscribe/587be243a5bfc9ade39884e8e92b557baf04f911bded94db7f7008b5a153c022.

Perhaps the .bat that runs OH is setting JAVA_HOME incorrectly.

I don’t run on Windows but know many successfully do.

I’m not going to be of much more help

Look here:

Some variables have to be changed on windows

Ensure that you’ve got a system-wide Environment Variable %JAVA_HOME% set up pointing to your Java directory (C:\Program Files\Java\jdk1.8.0_144)

1 Like

Hi Rich, Garry, HomeAutomation,
Well, I am up and running ,at last

I am embarrassed to say that it was the ‘System’ variable - I had created a ‘User’ variable - schoolboy error!!!

However, the issue has made me investigate the file structure, config files, variables, logs etc, So I now know my way round, much better than before.

Got the Paper UI going and I am working through the tutorials.

Thank you for your assistance.

Regards

Kevin.

2 Likes