Download Java for OS X 2015-001
Java for OS X 2015-001 installs the legacy Java 6 runtime for OS X 10.11 El Capitan, OS X 10.10 Yosemite, OS X 10.9 Mavericks, OS X 10.8 Mountain Lion, and OS X 10.7 Lion.
This package is exclusively intended for support of legacy software and installs the same deprecated version of Java 6 included in the 2014-001 and 2013-005 releases.
Quit any Java applications before installing this update.
See http://support.apple.com/kb/HT6133 for more details about this update.
See http://support.apple.com/kb/HT1222 for information about the security content of this update.
Keep your software up to date. If you need Java, download the latest version of Java for OS X directly from Oracle https://www.java.com