Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
javax.tool.ToolProvider has static methods to get system javac and javadoc. It'd be very useful to provide a static method to find a system tool of a given name (e.g. javap, xjc, etc) if the provider matching the given name can be found. javax.tool.Tool interface probably would need to provide a way to specify the name of the provider. Most JDK tools do not provide supported APIs to launch the tool programmatically. Existing application may choose to call the internal API directly to avoid launching the tool in a separate process. A unified way would be preferred to individual tool defining its own supported API.
|