1. Make MSI
Before installation, also make sure the installer have enough privilege:
You can set this in the default Domain Policy or in the installer GPO:
Computer Configuration > Policies > Administrative Templates > Windows Components/Windows Installer > Always install with elevated privileges
download the JRE file, then double click it, then go to your user folder, C:\Users\username\AppData\LocalLow\Oracle\Java\jrex.x.x_x64
Replace the username and x.x.x with your username and java version number, you will find the msi file here.Copy it to a shared location.
2. Deploy via GPO
same as this step: