HOWTO: Programatically Tell What VM Version Is InstalledID: Q177176
|
This article illustrates how to programatically determine what version of the Microsoft virtual machine (Microsoft VM) is installed on the system.
To programatically retrieve the version information for the Microsoft VM, you can use the SystemVersionManager.getVMVersion() static
method in com.ms.util package. This method returns a Properties object that
contains the Microsoft VM version data.
The code-snippet below illustrates how to get the version information of
the Microsoft VM from your Java applet or
application:
Create a Java Project and include the following class to it:
class test
{
public static void main(String[] args)
{
String build;
build=com.ms.util.SystemVersionManager.getVMVersion().getProperty
("BuildIncrement");
System.out.println("Using build "+build);
}
}
The BuildIncrement property indicates the version the Microsoft virtual machine.
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
Additional query words: vm version programmatically java
Keywords : kbcode JVM
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbhowto
Last Reviewed: July 26, 1999