public interface JDK extends Library
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JDK_EXEC_PROPERTY
The name of the property used to store the URL of the Java executable.
|
static java.lang.String |
JDK_INSTALLED_VMS_PROPERTY
The name of the property used to store the installed VM names of a JDK.
|
static java.lang.String |
JDK_NAME_PROPERTY
The name of the property used to store the name of a JDK.
|
static java.lang.String |
JDK_SDK_BIN_DIR_PROPERTY
The name of the property used to store the URL of the bin dir of a JDK.
|
static java.lang.String |
JDK_VERSION_NUMBER_PROPERTY
The name of the property used to store the version of a JDK.
|
LIBRARY_ID_PROPERTY, LIBRARY_NAME_PROPERTYCLASSPATH_PROPERTY, DOCPATH_PROPERTY, ISLOCKED_PROPERTY, SOURCEPATH_PROPERTY| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getInstalledVMs()
Get the installed VM names of this JDK.
|
java.net.URL |
getJavaExecutable()
Get the URL of the Java executable.
|
java.lang.String |
getJavaExecutableNoConsole()
Get the name of the non console Java executable if it exists.
|
VersionNumber |
getJavaVersion()
Get the Java version of this JDK expressed as a VersionNumber.
|
java.net.URL |
getSDKBinDir()
Get the URL of the bin directory of this JDK.
|
java.lang.String |
getSDKBinJavaExecutableNoConsole()
Get the name of the non console Java executable if it exists.
|
java.util.Properties |
getSystemProperties()
Get the Java system proprerties as they would be set when running in this
JDK.
|
static VersionNumber |
sanitizeVersionNumber(VersionNumber version)
Given a JDK version, make sure the version starts with
a number (the major version) and a dot.
|
void |
setInstalledVMs(java.lang.String[] installedVMs)
Set the installed VM names of this JDK.
|
void |
setJavaExecutable(java.net.URL url)
Set the URL of the Java executable.
|
void |
setJavaVersion(VersionNumber ver)
Set the Java version of this JDK.
|
void |
setSDKBinDir(java.net.URL url)
Set the URL of the bin directory of this JDK.
|
equivalent, getDefaultClassPath, getDefaultDocPath, getDefaultSourcePath, getID, getName, initFromLibrary, setDefaultClassPath, setDefaultDocPath, setDefaultSourcePath, setNamegetClassPath, getDocPath, getSourcePath, isLocked, setClassPath, setDocPath, setLocked, setSourcePathgetAttributedLabel, getIcon, getLongLabel, getShortLabel, getToolTipText, toStringstatic final java.lang.String JDK_NAME_PROPERTY
static final java.lang.String JDK_EXEC_PROPERTY
static final java.lang.String JDK_INSTALLED_VMS_PROPERTY
static final java.lang.String JDK_VERSION_NUMBER_PROPERTY
static final java.lang.String JDK_SDK_BIN_DIR_PROPERTY
java.net.URL getJavaExecutable()
void setJavaExecutable(java.net.URL url)
url - A URL which should not be nulljava.lang.String[] getInstalledVMs()
void setInstalledVMs(java.lang.String[] installedVMs)
installedVMs - The installed VM names which should not be nullstatic VersionNumber sanitizeVersionNumber(VersionNumber version)
version - A JDK versionVersionNumber getJavaVersion()
void setJavaVersion(VersionNumber ver)
ver - A version which should not be nulljava.net.URL getSDKBinDir()
void setSDKBinDir(java.net.URL url)
url - A URL which should not be nulljava.lang.String getSDKBinJavaExecutableNoConsole()
java.lang.String getJavaExecutableNoConsole()
java.util.Properties getSystemProperties()
-D) or through API calls (such as
System.setProperty(java.lang.String, java.lang.String)). The properties returned by this method may
or may not match the actual properties during a future execution of the
JVM. Callers should typically only use the standard Java properties
relating to the JDK implementation itself, such as java.home or
java.version, which will typically have the same values whenever
this JDK is run.