public final class JdkUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Key<java.util.Map<java.lang.String,java.lang.String>> |
COMMAND_LINE_CONTENT |
static java.lang.String |
PROPERTY_DO_NOT_ESCAPE_CLASSPATH_URL
The VM property is needed to workaround incorrect escaped URLs handling in WebSphere,
see IDEA-126859 for additional details
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkForJdk(java.io.File homePath) |
static boolean |
checkForJdk(java.lang.String homePath) |
static boolean |
checkForJre(java.io.File homePath) |
static boolean |
checkForJre(java.lang.String homePath) |
static boolean |
checkForRuntime(java.lang.String homePath) |
static java.lang.String |
getJdkMainAttribute(Sdk jdk,
java.util.jar.Attributes.Name attribute)
Returns the specified attribute of the JDK (examines 'rt.jar'), or
null if cannot determine the value. |
static boolean |
isExplodedModularRuntime(java.lang.String homePath) |
static boolean |
isModularRuntime(java.io.File homePath) |
static boolean |
isModularRuntime(java.lang.String homePath) |
static GeneralCommandLine |
setupJVMCommandLine(SimpleJavaParameters javaParameters) |
static TargetedCommandLineBuilder |
setupJVMCommandLine(SimpleJavaParameters javaParameters,
TargetEnvironmentRequest request,
TargetEnvironmentConfiguration targetConfiguration) |
static GeneralCommandLine |
setupJVMCommandLine(java.lang.String exePath,
SimpleJavaParameters javaParameters,
boolean forceDynamicClasspath)
Deprecated.
|
static java.lang.String |
suggestJdkName(java.lang.String versionString) |
static boolean |
useClasspathJar() |
static boolean |
useDynamicClasspath(Project project) |
static boolean |
useDynamicParameters() |
static boolean |
useDynamicVMOptions() |
public static final Key<java.util.Map<java.lang.String,java.lang.String>> COMMAND_LINE_CONTENT
public static final java.lang.String PROPERTY_DO_NOT_ESCAPE_CLASSPATH_URL
public static java.lang.String getJdkMainAttribute(Sdk jdk, java.util.jar.Attributes.Name attribute)
null
if cannot determine the value.public static java.lang.String suggestJdkName(java.lang.String versionString)
public static boolean checkForJdk(java.lang.String homePath)
public static boolean checkForJdk(java.io.File homePath)
public static boolean checkForJre(java.lang.String homePath)
public static boolean checkForJre(java.io.File homePath)
public static boolean checkForRuntime(java.lang.String homePath)
public static boolean isModularRuntime(java.lang.String homePath)
public static boolean isModularRuntime(java.io.File homePath)
public static boolean isExplodedModularRuntime(java.lang.String homePath)
public static TargetedCommandLineBuilder setupJVMCommandLine(SimpleJavaParameters javaParameters, TargetEnvironmentRequest request, TargetEnvironmentConfiguration targetConfiguration) throws CantRunException
CantRunException
public static GeneralCommandLine setupJVMCommandLine(SimpleJavaParameters javaParameters) throws CantRunException
CantRunException
public static boolean useDynamicClasspath(Project project)
public static boolean useDynamicVMOptions()
public static boolean useDynamicParameters()
public static boolean useClasspathJar()
@Deprecated public static GeneralCommandLine setupJVMCommandLine(java.lang.String exePath, SimpleJavaParameters javaParameters, boolean forceDynamicClasspath)
SimpleJavaParameters.toCommandLine()