Microsoft and Sun Java VM Versions via WMI

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
 
T

Torgeir Bakken \(MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top