org.zkoss.lang
Class JVMs

java.lang.Object
  extended by org.zkoss.lang.JVMs

public class JVMs
extends java.lang.Object

Utilities of Java Virtual Machine.

Author:
tomyeh

Method Summary
static int getMajorVersion()
          Returns the major version.
static int getMinorVersion()
          Returns the minor version.
static boolean isJava5()
          Returns whether JVM is 5.0 or above.
static boolean isJava6()
          Returns whether JVM is 6.0 or above.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isJava5

public static final boolean isJava5()
Returns whether JVM is 5.0 or above.

Note: if isJava5() returns true, then isJava6() must return true.


isJava6

public static final boolean isJava6()
Returns whether JVM is 6.0 or above.


getMajorVersion

public static final int getMajorVersion()
Returns the major version.


getMinorVersion

public static final int getMinorVersion()
Returns the minor version.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo