Microsoft and Sun Java VM Versions via WMI

Posted: 05-26-2005, 09:18 AM
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



Reply With Quote

Responses to "Microsoft and Sun Java VM Versions via WMI"

Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
Re: Microsoft and Sun Java VM Versions via WMI
Posted: 05-29-2005, 07:34 PM
Gavin G. Jones wrote:
> 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


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
Reply With Quote
 
LinkBack Thread Tools Display Modes
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete all previous versions of all files and folders? Roof Fiddler Windows Vista File Management 1 10-29-2006 06:26 PM
more versions of windows messenger? Pedro Matos Windows XP Messenger 1 07-26-2003 11:13 PM
Help clarify functionality of various Messenger versions Ray Windows XP Messenger 0 07-22-2003 08:43 PM
Windows Messenger - New Versions? John J. Hughes II Windows XP Messenger 4 07-21-2003 04:31 PM
Two Messenger Versions Fred Schell Windows XP Messenger 5 07-17-2003 02:51 AM


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90