Closed kvoit closed 6 years ago
What is the version of OpenHAB2 you're running? Current Snapshot? Stable?
Current stable apt version of openhab2:
2.2.0-1 500
500 https://dl.bintray.com/openhab/apt-repo2 stable/main amd64 Packages
Thanks for looking into this.
I do not have such an error in my test environment. I'm using the latest stable openHAB-2.3.0 with the latest mysensor binding.
However, when I wanted to make some Java development on mysensor openHAB binding I have found something that may help to fix issue. Eclipse showed me the following error:
The type org.eclipse.jdt.annotation.NonNullByDefault cannot be resolved. It is indirectly referenced from required .class files
When building mysensors binding with Maven I have noticed the following warning message:
[WARNING] .binding.mysensors.test\META-INF\MANIFEST.MF:[10] Every bundle should have optional Import-Package dependency to org.eclipse.jdt.annotation.
Then with help comes a e303975 commit by @freynder. The MANIFEST.MF file must contain the following line:
org.eclipse.jdt.annotation;resolution:=optional,
After this change, Eclipse doesn't show the error anymore.
I've fixed the compilation error. It should now compile just fine.
I have installed http://www.oberfoell.com/openhab2/org.openhab.binding.mysensors-2.3.0-SNAPSHOT.jar as described in the installation instruction. However, I get an exception. My Java is pretty rusty, but to me it looks like the jar didn't compile properly: