This issue happened because of incompatible Java version. Go to this page Java for OS X 2014-001 and install Java SE 6. Click download button and install older version of Java on your MacBook Pro. Note: If you install Java 8 on your Apple MacBook, it keep showing popup message like this. So install Java SE 6. Note that I am using Mac OS X Mavericks 10.9.2 Yosemite 10.10.3 and JDK 8 Update 45, not just the JRE. The process should be the same for the JRE and newer Java versions, with minor changes to the folder names (Update 45 JDK has “_45” in the paths above), but I did not test any other option.
And a completely new relationship between your Mac and iOS devices. OS X Yosemite changes how you see your Mac. And what you can do with it. Upgrade for free at the Mac App Store. Java for OS X 2014-001 includes installation improvements, and supersedes all previous versions of Java for OS X. Starting with Java 8 Update 20 (8u20), download and install Java 8 from oracle.com. ” Click the image below for a larger view. If you click the More information link, it takes you to the How do I install Java on Mac OS X 10.10 page.
After Java8 is installed verify that the following file exists (notice the space between 'Internet' and 'Plug-Ins'). You can do this via Finder.