Microsoft SDK for Java

Determining the VM Version Number

The availability of some features documented in the Microsoft SDK for Java depends on which version of the Microsoft VM you are running. There are four ways to determine the version number of the Microsoft VM.

  1. Open %Windir%\System[32], view the properties of msjava.dll and choose the Version tab. The four-digit number in the File Version box is the Microsoft VM version. For example, if 5.0.3167.1 is displayed, 3167 is the version number.

  2. View the contents of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\
    {08B0E5C0-4FCB-11CF-AAA5-00401C608500}\InstalledVersion
    .

  3. From the command line, run jview.

  4. Use the com.ms.util.SystemVersionManager class to determine the Microsoft VM version programmatically. This sample code will give the version number:
public class vers {
  public static void main(String[] args) {
System.out.println(com.ms.util.SystemVersionManager.getVMVersion());
  }
}

© 1999 Microsoft Corporation. All rights reserved. Terms of use.