For details about the requirements for using Java 7 and Java 8, see the SAS Third-Party Software Requirements page, scroll to your version of SAS, and click the associated JRE link.
This SAS Note describes how to download the SAS Java Runtime Environment (JRE) updates for SAS ® 9.4M3 (TS1M3) – SAS ® 9.4M7 (TS1M7). SAS ® 9.4M6 (TS1M6) and later use Java 8. SAS delivers regular updates of the SAS Private JRE based on Java 7 and Java 8.