How to Install Java in OS X Yosemite
Mac users who require Java and who have installed OS X Yosemite may have discovered that a prior version of Java is no longer functioning under OS X 10.10, and that older installers don’t work to install Java in Yosemite. Additionally, a fresh install of Yosemite does not include Java at all. If your Mac running OS X Yosemite needs Java for application compatibility, online banking, or any of the myriad of other reasons, you can manually install one of two versions of Java that are compatible with OS X 10.10, either the latest version of JRE 8, or an older version from Apple which remains compatible with the newest version of OS X.