Thank you for posting the question on the Microsoft Community Forums.
Based on the description provided, it looks like you are facing an issue while installing Java on your computer.
“Error 1316” A Network Error Occurred While Attempting to Read From the File. This occurs due to previous installer left files from the old install behind and those files prevent the new install from proceeding.
The fix to this issue ensure that you have a fully functioning Windows installer and also download the latest version of the installer from Microsoft's website and add it to your computer.
Check the Windows Installer Service.
a. Click Start, in the start search box, type Services and press Enter.
b. Scroll down and find the Windows Installer. Double-click “Windows Installer” in the Services list.
c. On the General tab, make sure the service is started under “Service status”.
d. If the service is not already running, under Service status, click Start, and then click OK.
Unregister and re-register the Windows Installer
a. Click Start Orb, in the start search box, type MSIEXEC /UNREGISTER, and then click OK.
b. Click Start Orb, in the start search box, type MSIEXEC /REGSERVER, and then click OK. After you run this command, the operation is complete.
c. Now, try your installation again.
If the issue still persists, install the latest version of Windows Installer.