We would like to investigate how much Java Runtime Environment (JRE) is actually being used on our devices. The end goal is minimize the number of devices that have JRE installed by removing it from the devices that doesn't use it.
I initially thought it would be rather simple to create a query that would show it to me based on "Software usage monitoring" data, but that was before I discovered that JRE can in fact be launched by 4 different processes (java.exe, javaw.exe, javaws.exe and jp2launcher.exe) depending on how Java is being used (desktop application vs. web applet and such).
My main problem is that the same device can have multiple versions of JRE installed at the same time - both in regards to 32/64bit but also different major versions (Java 5/6/7/8). So I can't just query for the 4 files where their path is like i.e. "c:\Program Files (x86)\Java\JRE%" and last launched is null or before a certain date as such query would "mix" all the different instances if one of the files where launched in one instance and another file where launched in a different instance.
Have anyone successfully done reporting like this on JRE usage?
Any suggestions are greatly appreciated.
Thanks in advance.