Microsoft and Sun Java VM Versions via WMI

  • Thread starter Thread starter Gavin G. Jones
  • Start date Start date
G

Gavin G. Jones

Hi,

Does anyone know which part of the WMI will give me the Java VM information
(Vendor(s):Sun Microsystems or Microsoft Corporation, Version, etc.)?

I was thinking of using Win32_Product, but there's a warning saying that
only apps installed through MSI would appear in here.

Thanks in advance,
Gavin
 
Gavin said:
Hi,

Does anyone know which part of the WMI will give me the Java VM information
(Vendor(s):Sun Microsystems or Microsoft Corporation, Version, etc.)?

I was thinking of using Win32_Product, but there's a warning saying that
only apps installed through MSI would appear in here.
Hi,

There is nothing builtin in WMI for this.

For MS JVM, the version number of %SystemRoot%\System32\msjava.dll can
be used (and if the file doesn't exist, MS JVM is not installed).

For Sun's Java Runtime Environment, you can use some script logic for
registry values/keys under
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment
 
Back
Top