Windows update script isn't working

  • Platform information:
    • Hardware: Minix
    • OS: Windows 10
    • Java Runtime Environment: Zulu 11
    • openHAB version: 3.4.3

The openHAB update powershell script: cd C:\openHAB
.\runtime\bin\update.ps1 Update-openHAB -OHVersion x.x.x is not working since a long time.
The cmd line version C:\openHAB2\runtime\bin\update.bat x.x.x was working so far but after the update to 3.4.2 the UI (http://localhost:8080 ) is not launched anymore, although the runtime is started in the karaf console.
After update to 3.4.3. Openhab started but all things where undefined. I had to restore userdata folder to solve problem.

Please fix the update scripts!

If there are several JAVA Versions installed, %JAVA_HOME% is not honored by the call to upgradetool.jar

Best to execute


before calling update.bat, call

java -version

it should show the suitable java version for the target openhab version

this is the code no honoring the %JAVA_HOME% environment variable

.. .. ..
.. .. ..
        # Now run the upgrade tool to update the JSON database
        Write-Host "Starting JSON database update..."
        java -jar "$OHRuntime\bin\upgradetool.jar"
        if ($LASTEXITCODE -ne 0) {
            Write-Error "Update tool failed, please check the openHAB website ( for manual update instructions."
        exit 1
        Write-Host "JSON database updated successfully."
.. .. ..
.. .. ..