All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.activiti.engine.impl.util.JvmUtil Maven / Gradle / Ivy

There is a newer version: 3.0.Beta
Show newest version
package org.activiti.engine.impl.util;

/**

 */
public class JvmUtil {

  public static String getJavaVersion() {
    return System.getProperty("java.version");
  }

  public static boolean isJDK8() {
    String version = System.getProperty("java.version");
    return version.startsWith("1.8");
  }

  public static boolean isJDK7() {
    String version = System.getProperty("java.version");
    return version.startsWith("1.7");
  }

  public static boolean isAtLeastJDK7() {
    return isJDK7() || isJDK8();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy