Configuring the External Compiler

From the Project Settings window, you can control the behavior the external compiler, such as whether to create debugging information and which executable to use. When you reconfigure a compiler, your changes affect all classes that use that compiler.

To configure the external compiler:

  1. From the main window, choose Project Settings.

  2. In the Project Settings window, expand the Compiler Types node and select External Compilation.

    The properties are presented in two tabs: Properties and Expert.

  3. Modify the values to your preferred settings.
    Properties Tab
    Debug Creates debugging information when you compile. This option enables you to see local variables during debugging.
    Deprecation Displays each use of a deprecated member or class.
    Encoding Sets the encoding that determines how the compiler interprets characters beyond the ASCII character set.
    Error Expression Provides a regular expression in POSIX format describing the format of the error output.
    External Compiler Sets the path to the executable compiler. By default, the external compiler is the javac compiler provided with your JDK.
    Identifying Name Sets the name that the IDE uses to identify this compiler type. Classes do not register name changes of compiler types. If you change this property, any class that use the compiler will revert to using the default compiler.
    Optimize Optimizes the generated bytecode so that it is more compact and runs faster.
    Expert Tab
    Boot Class Path Sets the path from which to load your java source files.
    Class Path Sets the class path to be used by the IDE. This value overrides the class path set in the CLASSPATH environment variable.
    Debug tag replace Sets the command line option for including debugging information (for example, -g).
    Deprecation tag replace Sets the command line option for showing deprecations (for example, -deprecation).
    Environment Variables Sets the environment variables that the IDE uses, defined as name=value. When this value is set to null, the IDE settings are used.
    Filesystems Path Sets the class path to the directories marked for execution in the filesystem. You cannot change this value.
    Library Path Sets the class path containing the libraries and modules that the IDE uses. You cannot change this value.
    Optimize tag replace Sets the command line option for optimizing bytecode (for example, -O).
    Output dir tag replace Sets the command line option for changing the directory in which to generate classes (for example, -d).
See also
Configuring the fastjavac Compiler
Configuring the Internal Compiler

Legal Notices