Please read the docs and check the prerequisits. openHAB 2.5.x requires Java 8 (Zulu 8 recommended). No higher version supported.
openHAB 3 will require Java 11 (also no other version supported).
Besides the answer of hmerk please also check if you installed the package openhab2-addons besides openhab2.Because of the move of the repository ( search here on the forum ) mvn downloads for 2.5 do not work any longer as far as I understand. Installation of the addons package should help here.
See openHAB 3.0.2 Patch Release and the Sunset of Bintray - this is due to Bintray having shut down their services on May 1st.
In any case, 2.5.0.M3 is pretty old, I’d very much suggest to use at least 2.5.12. With the KAR for offline usage of add-ons, you should not depend any longer on the remote availablility.
Hi, I have a similar issue here but with I’m using the RPI image.
Originally I had openhabian image 2.5.11 and I updated (apt package) the latest 2.5.12 version successfully (I updated sourcelist to https://openhab.jfrog.io/artifactory/openhab-linuxpkg and repository key https://openhab.jfrog.io/artifactory/api/gpg/key/public), but I have the same error messages:
As it seems to find the addons repository, it seems strange that the bindings cannot be installed:
$ sudo apt install openhab2-addons --dry-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
openhab2-addons
0 upgraded, 1 newly installed, 0 to remove and 496 not upgraded.
Inst openhab2-addons (2.5.12-1 Artifactory:stable [all])
Conf openhab2-addons (2.5.12-1 Artifactory:stable [all])
I wanted to keep with the online addon version if possible.
because online installation( mvn ) and offline installation ( openhab2-addons ) different sources / ways of working and one available does not include that the other is available, too.
Why not installing openhab2-addons as suggested by Kai - which seems to be the only option ?
Doesn’t it also have advantages as the mvn source could be down/not available and having installed the offline package makes it possible for you to run your OH environment.
That’s one option, but I’m using a raspberry compute module with just 3.6G, and the addons file is around 200MB, so it’s a lot of space to me I can make some space temporarily to install a binding, but then I’ll need to uninstall it again. Having to do all this offline process every time I need to install a binding is a mess.
My point is that it worked just fine few days ago and I think it should be interesting to “get back” this feature. In fact, I’d like to help if the issue is just storing the “cloud version” (I don’t know if it is just uploading a file and configuring the URL in openhab)!
I updated to 2.5.12, updated the addons to 2.5.12, and after two restarts of the service, everything is working.
Thanks to all for the help, much appreciated