public class ExternalSystemJdkUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
USE_INTERNAL_JAVA |
static java.lang.String |
USE_JAVA_HOME |
static java.lang.String |
USE_PROJECT_JDK |
Constructor and Description |
---|
ExternalSystemJdkUtil() |
Modifier and Type | Method and Description |
---|---|
static Sdk |
addJdk(java.lang.String homePath) |
static Pair<java.lang.String,Sdk> |
getAvailableJdk(Project project) |
static SdkType |
getJavaSdkType() |
static Sdk |
getJdk(Project project,
java.lang.String jdkName) |
static boolean |
isJdk9orLater(java.lang.String javaHome) |
static boolean |
isValidJdk(Sdk jdk) |
static boolean |
isValidJdk(java.lang.String homePath) |
static Sdk |
resolveDependentJdk(Sdk sdk) |
static Sdk |
resolveJdkName(Sdk projectSdk,
java.lang.String jdkName) |
static java.util.Collection<java.lang.String> |
suggestJdkHomePaths() |
public static final java.lang.String USE_INTERNAL_JAVA
public static final java.lang.String USE_PROJECT_JDK
public static final java.lang.String USE_JAVA_HOME
public static Sdk getJdk(Project project, java.lang.String jdkName) throws ExternalSystemJdkException
ExternalSystemJdkException
public static Sdk resolveJdkName(Sdk projectSdk, java.lang.String jdkName) throws ExternalSystemJdkException
ExternalSystemJdkException
public static Pair<java.lang.String,Sdk> getAvailableJdk(Project project) throws ExternalSystemJdkException
ExternalSystemJdkException
public static java.util.Collection<java.lang.String> suggestJdkHomePaths()
public static SdkType getJavaSdkType()
public static boolean isValidJdk(Sdk jdk)
public static boolean isValidJdk(java.lang.String homePath)
public static Sdk addJdk(java.lang.String homePath)
public static boolean isJdk9orLater(java.lang.String javaHome)