How to programatically tell what VM version is installed (177176)



The information in this article 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.

REFERENCES

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:

Modification Type:MinorLast Reviewed:8/25/2005
Keywords:kbcode kbFAQ kbhowto KB177176 kbAudDeveloper