@Incubating public interface JavaInstallation
You can obtain an instance of this type using JavaInstallationRegistry
.
Modifier and Type | Method | Description |
---|---|---|
String |
getImplementationName() |
Returns a name that identifies the implementation of this installation.
|
Directory |
getInstallationDirectory() |
Returns the root directory of this installation.
|
RegularFile |
getJavaExecutable() |
Returns a Java executable packaged in this installation that can be used for running applications.
|
JavaVersion |
getJavaVersion() |
Returns the Java version that this installation provides
|
Optional<JavaDevelopmentKit> |
getJdk() |
Returns information about the JDK packaged in this installation, if any.
|
JavaVersion getJavaVersion()
Directory getInstallationDirectory()
RegularFile getJavaExecutable()
String getImplementationName()
Optional<JavaDevelopmentKit> getJdk()