Java for OS X 2015-001 installs the legacy Java SE 6 runtime.
If you download the Java file and install it, you’ll get this message during installation: If you need Java, download the latest version of Java for OS X directly from Oracle See for information about the security content of this update. Quit any Java applications before installing this update. This package is exclusively intended for support of legacy software and installs the same deprecated version of Java 6 included in the 5 releases. 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. Here is the information provided on that page. If you click the More Info button, you’ll be taken to this page: If you click the OK button, the message will go away. You may get a message similar to the one below indicating that you need to install the legacy Java SE 6 runtime.