Save This Page
Home » openjdk-7 » sun » misc » [javadoc | source]
sun.misc
public class: Version [javadoc | source]
java.lang.Object
   sun.misc.Version
Method from sun.misc.Version Summary:
getJdkSpecialVersion,   getJvmSpecialVersion,   init,   jdkBuildNumber,   jdkMajorVersion,   jdkMicroVersion,   jdkMinorVersion,   jdkSpecialVersion,   jdkUpdateVersion,   jvmBuildNumber,   jvmMajorVersion,   jvmMicroVersion,   jvmMinorVersion,   jvmSpecialVersion,   jvmUpdateVersion,   print,   print
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.misc.Version Detail:
 public static native String getJdkSpecialVersion()
 public static native String getJvmSpecialVersion()
 public static  void init() 
 public static synchronized int jdkBuildNumber() 
    Returns the build number of the running JDK if it's a RE build It will return 0 if it's an internal build.
 public static synchronized int jdkMajorVersion() 
    Returns the major version of the running JDK.
 public static synchronized int jdkMicroVersion() 
    Returns the micro version of the running JDK.
 public static synchronized int jdkMinorVersion() 
    Returns the minor version of the running JDK.
 public static synchronized String jdkSpecialVersion() 
 public static synchronized int jdkUpdateVersion() 
    Returns the update release version of the running JDK if it's a RE build. It will return 0 if it's an internal build.
 public static synchronized int jvmBuildNumber() 
    Returns the build number of the running JVM if it's a RE build It will return 0 if it's an internal build.
 public static synchronized int jvmMajorVersion() 
    Returns the major version of the running JVM if it's 1.6 or newer or any RE VM build. It will return 0 if it's an internal 1.5 or 1.4.x build.
 public static synchronized int jvmMicroVersion() 
    Returns the micro version of the running JVM if it's 1.6 or newer or any RE VM build. It will return 0 if it's an internal 1.5 or 1.4.x build.
 public static synchronized int jvmMinorVersion() 
    Returns the minor version of the running JVM if it's 1.6 or newer or any RE VM build. It will return 0 if it's an internal 1.5 or 1.4.x build.
 public static synchronized String jvmSpecialVersion() 
 public static synchronized int jvmUpdateVersion() 
    Returns the update release version of the running JVM if it's a RE build. It will return 0 if it's an internal build.
 public static  void print() 
    In case you were wondering this method is called by java -version. Sad that it prints to stderr; would be nicer if default printed on stdout.
 public static  void print(PrintStream ps) 
    Give a stream, it will print version info on it.