Microsoft KB Archive/177176

= How to programatically tell what VM version is installed =

Article ID: 177176

Article Last Modified on 8/25/2005

-

APPLIES TO


 * Microsoft virtual machine 24xx Series
 * Microsoft virtual machine 31xx Series
 * Microsoft virtual machine 32xx Series
 * Microsoft virtual machine 33xx Series
 * Microsoft virtual machine 38xx Series

-



This article was previously published under Q177176



SUMMARY
This article illustrates how to programatically determine what version of the Microsoft virtual machine (Microsoft VM) is installed on the system.



MORE INFORMATION
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.

