Unable to find JVMs matching version

Hi there, I’m trying to install openHab on a Mac. I followed the installation guide from the official website. When I try to start the start.sh it says: Unable to find any JVMs matching version “1.8”.

I unistallend and installed java several times but its not helping. Java is successfully installed, I’m guessing openHab is looking on a wrong path.

Does someone know how to fix it?

Thanks

If someone having the same problem, install the java SE development kit, not just the normal Java JRE
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html