Eclipse error: The specified JRE installation does not exist

Go to Eclipse -> Preferences -> Java -> Installed JRE’s and add this path

/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home/

where: jdk1.8.0_73.jdk should be the installed jdk in your mac.