You must have one of the following JDKs installed on the system running HDF.
Open JDK8
Oracle JDK 8
If you a performing an installation using Ambari, Oracle JDK 8 is installed for you.