Specifying the Default Compiler Type

See Also 

The IDE comes with a set of compiler types that control how the IDE compiles you source files. One compiler type is selected as the default. The default compiler is used for all classes and templates for which you have not specifically assigned a compiler type. At startup, the default compiler is the external compiler.

In some cases, you might want to set a different compiler for a file or group of files. For example, you might prefer the Jikes compiler for verbose error reporting and the internal compiler for speed. Or, you might want to compile files with different options, such as with and without debugging information.

To change the default compiler type:

  1. From the main window, choose Tools and choose Options.
  2. In the Options window, expand the Editing node.
  3. Select the Java Sources node.
  4. Select the compiler type in the Default Compiler property.

    The change affects all files and templates for which you have not specifically assigned a compiler type.

To assign a compiler type to a specific file:

  1. Right-click the file in the Filesystems window and choose Properties.
  2. Select the compiler type in the Compiler property.

    This file is not affected when you change the default compiler in the Options window.

See Also
External Compiler
Internal Compilation
Jikes Compilation

Legal Notices