diff --git a/distributions/openhab/src/main/resources/bin/karaf b/distributions/openhab/src/main/resources/bin/karaf index cc50033c75..b36af8de5f 100755 --- a/distributions/openhab/src/main/resources/bin/karaf +++ b/distributions/openhab/src/main/resources/bin/karaf @@ -297,14 +297,17 @@ run() { ${KARAF_EXEC} "${JAVA}" ${JAVA_OPTS} \ --add-reads=java.xml=java.logging \ --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED \ - --patch-module java.base=lib/endorsed/org.apache.karaf.specs.locator-4.2.6.jar \ - --patch-module java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-4.2.6.jar \ + --patch-module "java.base=${KARAF_HOME}/lib/endorsed/org.apache.karaf.specs.locator-4.2.6.jar" \ + --patch-module "java.xml=${KARAF_HOME}/lib/endorsed/org.apache.karaf.specs.java.xml-4.2.6.jar" \ --add-opens java.base/java.security=ALL-UNNAMED \ --add-opens java.base/java.net=ALL-UNNAMED \ --add-opens java.base/java.lang=ALL-UNNAMED \ --add-opens java.base/java.util=ALL-UNNAMED \ --add-opens java.naming/javax.naming.spi=ALL-UNNAMED \ --add-opens java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED \ + --add-opens java.base/java.lang.reflect=ALL-UNNAMED \ + --add-opens java.base/java.text=ALL-UNNAMED \ + --add-opens java.desktop/java.awt.font=ALL-UNNAMED \ --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED \ --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED \ --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED \ diff --git a/distributions/openhab/src/main/resources/bin/karaf.bat b/distributions/openhab/src/main/resources/bin/karaf.bat index 89d97a362b..fd294a95d0 100644 --- a/distributions/openhab/src/main/resources/bin/karaf.bat +++ b/distributions/openhab/src/main/resources/bin/karaf.bat @@ -420,14 +420,17 @@ if "%KARAF_PROFILER%" == "" goto :RUN "%JAVA%" %JAVA_OPTS% %OPTS% ^ --add-reads=java.xml=java.logging ^ --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED ^ - --patch-module java.base=lib/endorsed/org.apache.karaf.specs.locator-4.2.6.jar ^ - --patch-module java.xml=lib/endorsed/org.apache.karaf.specs.java.xml-4.2.6.jar ^ + --patch-module "java.base=%KARAF_HOME%/lib/endorsed/org.apache.karaf.specs.locator-4.2.6.jar" ^ + --patch-module "java.xml=%KARAF_HOME%/lib/endorsed/org.apache.karaf.specs.java.xml-4.2.6.jar" ^ --add-opens java.base/java.security=ALL-UNNAMED ^ --add-opens java.base/java.net=ALL-UNNAMED ^ --add-opens java.base/java.lang=ALL-UNNAMED ^ --add-opens java.base/java.util=ALL-UNNAMED ^ --add-opens java.naming/javax.naming.spi=ALL-UNNAMED ^ --add-opens java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED ^ + --add-opens java.base/java.lang.reflect=ALL-UNNAMED ^ + --add-opens java.base/java.text=ALL-UNNAMED ^ + --add-opens java.desktop/java.awt.font=ALL-UNNAMED ^ --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED ^ --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED ^ --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED ^