After installing OS X Yosemite, my machine periodically burped up this message:
Annoying and disquieting. So installed Java 8 for OSX. NO JOY. Furthermore, Java 8 is a 64 bit Java which is supported by Firefox and Safari, but not Chrome (believe it or not, Chrome is still a 32 bit program…).
Then I discovered this support page leading to this helpful page at Apple:
Turns out, the good folks at Apple maintain a 32 bit version of Java (v6) that should solve this annoying popup.
Let me know if it works for you!