Specifying the Default Compiler

The IDE comes with a set of compilers that suit most development needs. One compiler 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:

  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. In the property sheet, find the Default Compiler property, click its value, and choose a compiler from the combo box.

    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 Explorer and choose Properties.
  2. In the Properties window, click the Execution tab.
  3. Click the value for the Compiler property and choose a compiler from the combo box.

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

See also
External Compiler
Internal Compiler
Fastjavac Compiler
Jikes Compiler

Legal Notices