public class NJavaSdkUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.log.NLog |
_LOG() |
net.thevpc.nuts.artifact.NId |
createJdkId(String version) |
net.thevpc.nuts.artifact.NVersionFilter |
createVersionFilter(String requestedJavaVersion) |
net.thevpc.nuts.artifact.NVersionFilter |
createVersionFilterExact(String requestedJavaVersion) |
Predicate<String> |
createVersionFilterPredicate(net.thevpc.nuts.artifact.NVersionFilter versionFilter) |
Predicate<String> |
createVersionFilterPredicate(String requestedJavaVersion) |
static Integer |
defaultJavaMajorVersion() |
String |
detectJdkProvider(String name) |
net.thevpc.nuts.platform.NExecutionEngineLocation |
getHostJvm() |
static boolean |
isJava(net.thevpc.nuts.artifact.NId id) |
static List<NClassLoaderNodeExt> |
loadNutsClassLoaderNodeExts(net.thevpc.nuts.core.NClassLoaderNode[] n,
boolean java9) |
static int |
normalizeJavaVersionAsInt(net.thevpc.nuts.artifact.NVersion version) |
static NJavaSdkUtils |
of() |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.platform.NExecutionEngineLocation> |
resolveAndInstall(String product,
net.thevpc.nuts.artifact.NVersion version,
net.thevpc.nuts.platform.NOsFamily os,
net.thevpc.nuts.platform.NArchFamily arch) |
String |
resolveJavaCommandByHome(String javaHome) |
net.thevpc.nuts.util.NOptional<String> |
resolveJavaCommandByVersion(net.thevpc.nuts.platform.NExecutionEngineLocation nutsPlatformLocation,
boolean javaw) |
net.thevpc.nuts.util.NOptional<String> |
resolveJavaCommandByVersion(String requestedJavaVersion,
boolean javaw,
boolean jdk,
boolean ifNotFoundSearchLocally,
boolean ifNotFoundSearchRemotely) |
net.thevpc.nuts.platform.NExecutionEngineLocation |
resolveJdkLocation(net.thevpc.nuts.io.NPath path,
String preferredName) |
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.platform.NExecutionEngineLocation> |
resolveJdkLocation(String javaVersion,
boolean jdk,
boolean ifNotFoundSearchLocally,
boolean ifNotFoundSearchRemotely) |
net.thevpc.nuts.platform.NExecutionEngineLocation[] |
searchJdkLocations() |
net.thevpc.nuts.platform.NExecutionEngineLocation[] |
searchJdkLocations(net.thevpc.nuts.io.NPath loc) |
Future<net.thevpc.nuts.platform.NExecutionEngineLocation[]> |
searchJdkLocationsFuture() |
Future<net.thevpc.nuts.platform.NExecutionEngineLocation[]> |
searchJdkLocationsFuture(net.thevpc.nuts.io.NPath s) |
net.thevpc.nuts.platform.NExecutionEngineLocation[] |
searchRemoteLocationsAndInstall(String product,
net.thevpc.nuts.artifact.NVersion version) |
static net.thevpc.nuts.util.NOptional<Integer> |
validateJavaMajorVersion(net.thevpc.nuts.artifact.NVersion version) |
static net.thevpc.nuts.util.NOptional<Integer> |
validateJavaMajorVersion(String version) |
static Integer |
validateJavaMajorVersionOrDefault(net.thevpc.nuts.artifact.NVersion version) |
static Integer |
validateJavaMajorVersionOrDefault(String version) |
static net.thevpc.nuts.util.NOptional<String> |
validateJavaProduct(String product) |
Predicate<net.thevpc.nuts.artifact.NVersion> |
validateJavaVersion(net.thevpc.nuts.artifact.NVersionFilter versionFilter) |
public static NJavaSdkUtils of()
public static Integer defaultJavaMajorVersion()
public static Integer validateJavaMajorVersionOrDefault(String version)
public static net.thevpc.nuts.util.NOptional<Integer> validateJavaMajorVersion(String version)
public static Integer validateJavaMajorVersionOrDefault(net.thevpc.nuts.artifact.NVersion version)
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.platform.NExecutionEngineLocation> resolveAndInstall(String product, net.thevpc.nuts.artifact.NVersion version, net.thevpc.nuts.platform.NOsFamily os, net.thevpc.nuts.platform.NArchFamily arch)
public static net.thevpc.nuts.util.NOptional<Integer> validateJavaMajorVersion(net.thevpc.nuts.artifact.NVersion version)
public static net.thevpc.nuts.util.NOptional<String> validateJavaProduct(String product)
public static List<NClassLoaderNodeExt> loadNutsClassLoaderNodeExts(net.thevpc.nuts.core.NClassLoaderNode[] n, boolean java9)
public static boolean isJava(net.thevpc.nuts.artifact.NId id)
protected net.thevpc.nuts.log.NLog _LOG()
public Predicate<String> createVersionFilterPredicate(String requestedJavaVersion)
public Predicate<String> createVersionFilterPredicate(net.thevpc.nuts.artifact.NVersionFilter versionFilter)
public net.thevpc.nuts.artifact.NVersionFilter createVersionFilterExact(String requestedJavaVersion)
public net.thevpc.nuts.artifact.NVersionFilter createVersionFilter(String requestedJavaVersion)
public net.thevpc.nuts.platform.NExecutionEngineLocation getHostJvm()
public net.thevpc.nuts.util.NOptional<net.thevpc.nuts.platform.NExecutionEngineLocation> resolveJdkLocation(String javaVersion, boolean jdk, boolean ifNotFoundSearchLocally, boolean ifNotFoundSearchRemotely)
public Predicate<net.thevpc.nuts.artifact.NVersion> validateJavaVersion(net.thevpc.nuts.artifact.NVersionFilter versionFilter)
public net.thevpc.nuts.platform.NExecutionEngineLocation[] searchRemoteLocationsAndInstall(String product, net.thevpc.nuts.artifact.NVersion version)
public net.thevpc.nuts.platform.NExecutionEngineLocation[] searchJdkLocations()
public Future<net.thevpc.nuts.platform.NExecutionEngineLocation[]> searchJdkLocationsFuture()
public net.thevpc.nuts.platform.NExecutionEngineLocation[] searchJdkLocations(net.thevpc.nuts.io.NPath loc)
public Future<net.thevpc.nuts.platform.NExecutionEngineLocation[]> searchJdkLocationsFuture(net.thevpc.nuts.io.NPath s)
public net.thevpc.nuts.platform.NExecutionEngineLocation resolveJdkLocation(net.thevpc.nuts.io.NPath path,
String preferredName)
public net.thevpc.nuts.artifact.NId createJdkId(String version)
public net.thevpc.nuts.util.NOptional<String> resolveJavaCommandByVersion(String requestedJavaVersion, boolean javaw, boolean jdk, boolean ifNotFoundSearchLocally, boolean ifNotFoundSearchRemotely)
public net.thevpc.nuts.util.NOptional<String> resolveJavaCommandByVersion(net.thevpc.nuts.platform.NExecutionEngineLocation nutsPlatformLocation, boolean javaw)
public static int normalizeJavaVersionAsInt(net.thevpc.nuts.artifact.NVersion version)
Copyright © 2026 vpc open source initiative. All rights reserved.