HOWTO: Programatically Tell What Version of the VM is InstalledLast reviewed: January 29, 1998Article ID: Q177176 |
The information in this article applies to:
SUMMARYThis article illustrates how to programatically determine what version of the Microsoft Virtual Machine for Java is installed on the system.
MORE INFORMATIONTo programatically retrieve the version information for the Microsoft Virtual Machine, you can use the SystemVersionManager.getVMVersion() static method in com.ms.util package. This method returns a Properties object that contains the Virtual Machine version data. The code-snippet below illustrates how to get the version information of the Microsoft Virtual Machine for java 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 Java.
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page 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
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |