Which Java VM in use

(imported topic written by SystemAdmin)

Hi all. I am trying to get an accurate count of those machine’s that have MS Java installed AND is in use. Can anyone give an accurate way to determine this?

Thanks all.

(imported comment written by JTR91)

Hello psisk

Create an analisys with this 2 properties.

Try this to detect what java version is in use.

if (exists value “CurrentVersion” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment” of registry) then (value “CurrentVersion” of keys “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment” of registry as string) else (“Not Installed”)

and try this to detect how many java versions are installed.

if (exists keys of keys “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment” of registry)then (concatenation "& " of names of keys of keys “HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment” of registry)else (“Not Installed”)

regards.

jtr

(imported comment written by SystemAdmin)

The MS version of Java will appear in these keys?? I thought these were specific to SUN.