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 $
JAVA_13
public final static int JAVA_13
JAVA_14
public final static int JAVA_14
JAVA_15
public final static int JAVA_15
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.