public class JdkUtil extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_ANDROID
是否Android环境
|
static boolean |
IS_AT_LEAST_JDK17
是否大于等于JDK17
|
static boolean |
IS_GRAALVM_NATIVE
是否GraalVM Native Image环境
|
static boolean |
IS_JDK8
是否JDK8
由于Hutool基于JDK8编译,当使用JDK版本低于8时,不支持。 |
static boolean |
IS_OPENJ9
是否OPENJ9环境
|
static int |
JVM_VERSION
JDK版本
|
Constructor and Description |
---|
JdkUtil() |
public static final int JVM_VERSION
public static final boolean IS_JDK8
public static final boolean IS_AT_LEAST_JDK17
public static final boolean IS_ANDROID
public static final boolean IS_OPENJ9
public static final boolean IS_GRAALVM_NATIVE
Copyright © 2025. All rights reserved.