This one’s a quick and dirty post. If you need to install Java 1.8 with MDT, just use the offline executable. I used to use the MSI, but that’s proven to be less reliable as of late. So, here goes:
jre-8u77-windows-i586.exe INSTALL_SILENT=1 STATIC=0 AUTO_UPDATE=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0
Obviously, install silent is what you want, Auto Update is a call you may wanna make depending on your environment and of course, letting application installers call a reboot is a no no with MDT.
Sponsors = 0 is a big deal, because nobody wants the ask toolbar, NOBODY.