I hope I can save someone some grief getting openHAB with MiOS bindings to work on a Raspberry Pi 2. After hours of frustration trying to get it working I decided to copy my openHAB directory over to my Mac Book Pro. Hey, it worked right away! Wow this so cool!
So back to the Pi. Thinking it must be the environment and suspecting Java, I did this:
root@zippy:/home/chris/OH# java -version
java version “1.6.0_34”
OpenJDK Runtime Environment (IcedTea6 1.13.6) (6b34-1.13.6-1~deb7u1+rpi1)
OpenJDK Zero VM (build 23.25-b01, mixed mode)
Doing some googling I tried a couple of commands to remove OpenJDK and install Oracle’s version. Tried this:
apt-get remove openjdk-6-jre default-jre default-jre-headless
OpenJava was still there. Then this:
apt-get purge openjdk*
Now OpenJava is gone so now install Oracle’s Java
apt-get update && sudo apt-get install oracle-java7-jdk
That did the trick, now openHAB is talking to my Vera Lite. So cool. Anyway, I hope this will help someone get it right the first time.
Also a big thanks to all that made this possible.
Chris