org.springframework.core
Class JdkVersion


public class JdkVersion

Class used to find the current JVM version. Usually we want to find if we're in a 1.4 or higher JVM. (Spring does not support 1.2 JVMs.)

Author:
Rod Johnson
Version: $Id: JdkVersion.java,v 1.1 2004/02/02 11:22:31 jhoeller Exp $

Field Summary
 final static intJAVA_13
           
 final static intJAVA_14
           
 final static intJAVA_15
           

Method Summary
 static intgetMajorJavaVersion()
          Get the major version code.

Field Detail

JAVA_13

public final static int JAVA_13

JAVA_14

public final static int JAVA_14

JAVA_15

public final static int JAVA_15
Method Detail

getMajorJavaVersion

public static int getMajorJavaVersion()
Get the major version code. This means we can do things like if getJavaVersion() >= JAVA_14
Returns: a code comparable to the JAVA_XX codes in this class.