Class JavaVersionResolver
java.lang.Object
eu.cloudnetservice.node.impl.util.JavaVersionResolver
An util class for resolving the java version for a given path.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate static final org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable eu.cloudnetservice.driver.base.JavaVersionStarts a process and checks the java version of the given java executable path.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
JAVA_REGEX
-
-
Constructor Details
-
JavaVersionResolver
private JavaVersionResolver()
-
-
Method Details
-
resolveFromJavaExecutable
@Nullable public static @Nullable eu.cloudnetservice.driver.base.JavaVersion resolveFromJavaExecutable(@Nullable @Nullable String input) Starts a process and checks the java version of the given java executable path.- Parameters:
input- the path to the java executable to check the version of.- Returns:
- the java version of the executable, null if not parseable or if the version is unsupported.
-