Starting openHAB as a Service for openHAB 3.0.0.M1

Ok Guys, I got it working.

A few minor changes to the Wrapper config file in Userdata/etc

1. Totally remove the below lines.

wrapper.java.additional.8=-Djava.endorsed.dirs="%JAVA_HOME%\jre\lib\endorsed;%JAVA_HOME%\lib\endorsed;%KARAF_HOME%\lib\endorsed"
wrapper.java.additional.9=-Djava.ext.dirs="%JAVA_HOME%\jre\lib\ext;%JAVA_HOME%\lib\ext;%KARAF_HOME%\lib\ext"

2. Add the belows lines under #Java Application.

wrapper.java.classpath.3=%KARAF_HOME%\lib\jdk9plus\*.jar
wrapper.java.classpath.4=%KARAF_HOME%\lib\endorsed\*.jar

You probably dont need the Endorsed path (Mine worked without it) but it doesn’t hurt.
I also renumbered the parameters to account for the 2 lines I removed.

I’m no Java expert but this worked for me.

I’ve included my modified wrapper config below.

openHAB-wrapper.txt (2.9 KB)

1 Like