Hello PMPC Team,
We have been dealing with inconsistent behavior of Oracle Java Runtime 8 file associations for some time now, and lately I had to provide a previous version of it for a specific group of devices.
Using custom apps, I had to dig a bit and find the parameters you can pass to the .exe installer, from them I tested the following and they work fine so far:
- /s (Silent Install)
- REBOOT=ReallySuppress (Self explanatory)
- WEB_JAVA=1 (associates .jar files with Javaw.exe and .jnlp with jp2launcher.exe)
- /L C:\Windows\Logs\JRE8421_Install.log (creates a log file of the installation, careful with the syntax there, it doesn't likes environment variables, nor enclosed in quotes paths, you can see in the jusched.log file how the installer constructs them, very handy)
- AUTO_UPDATE=Disable (Self explanatory)
#2 is the one that solved our association issues, before that, I was considering running a post installation script to do the associations (which can prove quite challenging on Windows 10 and later).
I have added the parameter #2 in the PMPC Publisher's options for Oracle Java Runtime ConfigMgr Apps and Updates and works fine.
I'm not 100% sure for the AUTO_UPDATE=Disable parameter (it seems to be applied during install), as I saw prompts for update of the older version at users.
Would you consider incorporating #2 in your configuration files for Oracle JRE -could apply to JDK also but I don't do it to avoid creating a mess with file associations-.
Kind regards
Hey there!
We already have that covered — the following is the default we use:
/s REBOOT=ReallySuppress
If your question is about point #3:
WEB_JAVA=1 (which associates .jar files with javaw.exe and .jnlp with jp2launcher.exe) — we don't set any config options for apps.
That said, we totally understand that some folks might want a newer version of Java to be the default file handler, while still keeping Java 8 around for specific apps.You are absolutely free to customize the command line to suit your environment and needs.
Hope that helps! Let us know if you have any other questions. :)
Hi Bogdan,
That fact you stated, isn't straight forward to be honest.
Especially for JRE, it can become a big issue.
I'm aware that if someone installs JRE and then a JDK, chances are that the latter may do the association -and that may create a lot of confusion again-, is there a way to request for a change about the JRE?