Tools can be located using java.
.
Modifier and Type | Method and Description |
---|---|
public Set | Returns: a set of supported source versionsReturns the source versions of the Java programming language supported by this tool. |
public default String | Returns: the name of this toolReturns the name of this tool, or an empty string if no name is provided. |
public int | Returns: 0 for success; nonzero otherwise"standard" input; use System.in if null in, OutputStream "standard" output; use System.out if null out, OutputStream "standard" error; use System.err if null err, String... arguments to pass to the tool arguments)Run the tool with the given I/O channels and arguments. |
getSourceVersions | back to summary |
---|---|
public Set Returns the source versions of the Java programming language supported by this tool.
|
name | back to summary |
---|---|
public default String name() Returns the name of this tool, or an empty string if no name is provided. API Note It is recommended that the name be the same as would be used on the command line: for example, "javac", "jar", "jlink". Implementation Note This implementation returns an empty string.
|
run | back to summary |
---|---|
public int run(InputStream in, OutputStream out, OutputStream err, String... arguments) Run the tool with the given I/O channels and arguments. By
convention a tool returns 0 for success and nonzero for errors.
Any diagnostics generated will be written to either
|