JavaCompiler
Interface JavaCompiler
- All Superinterfaces:
- OptionChecker, Tool
public interface JavaCompiler extends Tool, OptionChecker
Interface to invoke Java™ programming language compilers from programs.
The compiler might generate diagnostics during compilation (for example, error messages). If a diagnostic listener is provided, the diagnostics will be supplied to the listener. If no listener is provided, the diagnostics will be formatted in an unspecified format and written to the default output, which is System.err
unless otherwise specified. Even if a diagnostic listener is supplied, some diagnostics might not fit in a Diagnostic
and will be written to the default output.
A compiler tool has an associated standard file manager, which is the file manager that is native t