Unhandled Exception: java.lang.NoClassDefFoundError: Could not initialize class

You put them in the correct place because this message is from openHAB trying (and failing) to use them:

16:40:30.621 [WARN ] [org.apache.felix.fileinstall         ] - Error while starting bundle: file:/openhab/addons/org.openhab.binding.caldav-personal-1.15.0-SNAPSHOT.jar
org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.caldav-personal [255]
  Unresolved requirement: Import-Package: org.openhab.io.caldav

It looks like @H102 missed that you need a snapshot for “org.openhab.io.caldav” too:

https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/io/org.openhab.io.caldav/1.15.0-SNAPSHOT/org.openhab.io.caldav-1.15.0-SNAPSHOT.jar

You can look them up in karaf with:

bundle:list | grep -i caldav

You will get a few things like this:

212 │ Installed │  80 │ 1.14.0                  │ openHAB CalDav Calendar

N.B. “Installed” means they have been found “Active” means it is actually working.

1 Like