On the Compiler > Java Compiler page, you can select the compiler to be used and specify how it should be used.
Compiler and bytecode versions
| Item | Description |
|---|---|
| Use compiler |
Select the compiler to be used:
|
| Project bytecode version |
Select the version of bytecode to be generated.
(Roughly, this is the minimum target JVM version.)
If no particular version is specified, the bytecode version is defined by the compiler. To specify different versions for particular modules, use the controls in the Per-module bytecode version area. |
| Per-module bytecode version |
If necessary, specify the target bytecode versions for individual modules
(e.g. if they should differ from that set for the project).
Click
Use |
Javac and Eclipse options
| Item | Description |
|---|---|
| Generate debugging info | If this check box is selected, the compiler generates the information necessary for running the compiled classes in the debugger. |
| Report use of deprecated features | If this check box is selected, the compiler displays warnings about the deprecated methods, classes, or fields encountered during compilation. (The corresponding warnings are shown in the compiler output window.) |
| Generate no warnings | If this check box is selected, the compiler omits the warnings about dubious usages of language constructs. |
| Proceed on errors | For the Eclipse compiler: If you select this check box, the compiler continues the compilation even when compilation errors occur. |
| Additional command line parameters |
Specify the command-line parameters and options to be passed to the compiler at its start.
Refer to the compiler documentation for the available options.
If you need more room to type, click When specifying the parameters and options, follow these rules:
|
Ajc options
The ajc options are available only in the Ultimate Edition of IntelliJ IDEA.
| Item | Description |
|---|---|
| Path to Ajc compiler |
Specify the path to ajc (the file aspectjtools.jar which is located
in <AspectJ installation directory>\lib).
Type the path in the field, or click |
| Test |
Click this button to check if the path and the command line parameters are correct.
If all is well, the compiler version is displayed. Otherwise, an error message is shown.
(Using the path and the parameters specified, IntelliJ IDEA tries to launch the compiler
with the additional |
| Command line parameters |
If necessary, specify the
command-line options
to be passed to the compiler.
You can type the parameters right in the field,
or click When specifying the options, follow these rules:
NOTE: The specified parameters are ignored when See also, Optimizing compilation performance: Using ajc in combination with javac, Controlling the ajc aspectpath and Fine-tuning the use of ajc at a module level. |
| Generate debug info | If this check box is selected, the compiler generates the information necessary for running the compiled classes in the debugger. |
| Delegate to Javac |
If this option is off, ajc is used in all cases.
If this option is on, See also, Optimizing compilation performance: Using ajc in combination with javac and Fine-tuning the use of ajc at a module level. |
Groovy-Eclipse options
| Item | Description |
|---|---|
| Path to groovy-eclipse-batch jar | Specify a path to your groovy-eclipse-batch jar location. Click Browse button
to open Select Path dialog, select the location of the .jar file and click OK.Please note that it is necessary to enter the location of the groovy-eclipse-batch .jar file for the compiler to work correctly. |
| Additional command line parameters |
Specify the command-line parameters and options to be passed to the compiler at its start.
Refer to the compiler documentation for the available options.
If you need more room to type, click When specifying the parameters and options, follow these rules:
|
| Generate debug info | If this check box is selected, the compiler generates the information necessary for running the compiled classes in the debugger. |
.
The compiler from the JDK that is currently assigned to the project is used.
and select the modules of interest in the dialog that opens.
Then, for each of the modules,
click the corresponding
to remove the selected module or modules from the list.
to open the
and select the required file in
the