The Compiling panel
enables you to
set general compilation options for your project.
You open the Standard
Java SE Project Properties dialog box by right-clicking any
node and choosing Properties.
The Compiling panel includes the following options:
Compile on Save. If selected, files are compiled when you save them.
This option saves you time when you run or debug your application in the IDE.
Generate Debugging Info. If selected, the compiled classes will
include information necessary for stopping at breakpoints and stepping through
the application with the debugger.
Report Uses of Deprecated APIs. If selected, you are notified in
the compilation output of any deprecated APIs that you code uses.
Track Java Dependencies. If selected, the IDE makes sure to use
the latest version of any project dependencies every time you build or run your
project. This full dependency check can make the build process
significantly slower for large projects. If you leave
this option unchecked, you can still have the full dependency check
performed by building your project with the Clean and Build command.
Enable Annotation Processing. Select this check box to enable annotation processing during building your project. If this check box is not selected, compilation proceeds without annotation processing, even if a class path to an annotation processor has been specified on the Libraries tab. This check box corresponds to the -proc:none option of the compiler.
Enable Annotation Processing in Editor. If the Enable Annotation Processing option is selected, you can enable annotation processing in the IDE Editor. This means that any additional artifacts that are generated by processors (classes, methods, fields, etc.) will be visible through the IDE features, such as code completion, Navigator, GoTo Type, Find usages, and other. Also, the Editor will display any diagnostic messages produced by annotation processors. In addition, completion suggestions for annotation attribute
values produced by annotation processors will become available in Java code
completion.
Annotation Processors. Click Add to explicitly specify an annotation processor for your project. In the Add Annotation Processor dialog box, enter a fully qualified name of the annotation processor. This setting corresponds to the –processor option of the compiler. Note that to use the annotation processor, you should also add it to the classpath or the processor path of your project on the Libraries tab.
Processor Options. In this field, you can pass additional options to the annotation processor associated with your project. These options are made available for use by individual processors and not interpreted by the compiler. The options are specified in the form -A[key[=val]]. Click Add and specify the key and its value that are recognized by your annotation processor.
Additional Compiler Options. Enter any additional compiler options that you
need in a space-separated list.
For more information on compiler options, see:
Notes:
Do not use compiler options like -bootclasspath to cross-compile between
Java platforms. Instead, register the target Java platform and set the
target JDK for the project.
You can manage the project's classpath by clicking Libraries in the left panel of the dialog box. You can set up file filters for JAR file creation by clicking Packaging.