I followed Eclipse IDE | openHAB and during setup picked both the “OpenHAB Development” and “OpenHAB Addons” and let Eclipse finish all the downloading etc.
At the end it sits there with those 6 errors
Why is stuff missing from a clean install?
It’s many years ago that I dealed with Java and used Eclipse - so I’m totally out of ideas how to fix this. Any pointers welcome
Windows 10, installed Eclipse via the “with JRE” installer. Apart from that I have java.home=C:\Program Files\AdoptOpenJDK\jdk-15.0.2.7-hotspot on the machine
Ah, is this the reason for this error, which seems the root of all errors?
The container 'Maven Dependencies' references non existing library 'C:\Users\Jens\.m2\repository\de\maggu2810\p2redist\org.antlr.runtime\3.2.0.v201101311130\org.antlr.runtime-3.2.0.v201101311130.jar'
The folder is there but there is no jar file in there. Only a properties file with some source locations (?) I checked some of them but the best I could find was a 2.7.x or 3.0.x beta version on repo.maven.apache.org and openhab.jfrog.io
Next thing were “bnd” issues that I could fix by changing the bnd.version to 5.3.0 for both openhab-addon and openhab-distro (proably due to me refusing to download JDK-8 from Oracle and sticking with AdoptOpenJDK)
Next there was the riddle to actually get the demo to run. The requirements thing was complaining about missing org.eclipse.equinox.metatype. I figured I could just remove that from the list of requirements.
After some more fiddling with that and project dependencies I’m now able to run/debug OpenHAB-2.5 with the KM200 binding!
Hopefully that was worth the effort to figure out why the binding stopped working for me.