Compile Tab (Project Properties Dialog Box)

See Also   Tasks

The Compile tab allows you to make changes to the compiler settings.

From the Compile tab you can:

Options

Configuration

This option contains a list from which you can select your build type. This setting is global to all the tabs in this dialog box.

Your choices are:

Warning Level

Use this option to choose warning levels for your project. The levels range from no warning to warning level 4. The higher the level, the more sensitive the compiler will be. The following is a list of the different warning levels and their meaning.

Warning level Description
None Turns off all warning messages.
Level 1 Displays only severe warning messages.
Level 2 Displays warning messages less severe than Level 1. (Default)
Level 3 Displays warning messages less severe than Level 2. For example, not initializing a local variable or specifying an invalid compiler setting.
Level 4 Displays all warning messages.

Disable Microsoft Language Extensions

When selected, this option directs the compiler to disallow Java language extensions defined by Microsoft. Language features such as conditional compilation will be treated as syntax errors if encountered in your source files.

Note   Disabling Microsoft language extensions from your projects may not result in syntax errors with comment-based extensions like J/Direct. However, your program will not run correctly.

Generate Debugging Information

When selected, this option directs the compiler to include full debugging information, such as line number references, in the compiled Java class files. Adding debugging information to your compiled files allows you to debug your application from within the Visual J++ environment. Including debugging information in your compiled code may decrease code execution speed and increase the size of your compiled code.

Optimize Compiled Code

When selected, this option informs the compiler to perform a fully optimized compilation of the source files in the project. Selecting this option will allow the compiler to tune your Java class files so they can execute faster.

Recompile Only Changed Files

When selected, this option informs the compiler to only compile files that have been changed. You can use this option to optimize compile time by.

Treat All Warnings As Errors

When selected, this option informs the compiler that all warnings are to be treated as errors. Using this option requires all warnings be eliminated from the source code before compilation can succeed.

Output Directory

A text box that allows you to specify an alternate output directory to use when your project is compiled. You can use this directory to differentiate between the different builds of your project.

Conditional Compilation Symbols

This text box allows you to enter a space, tab, semicolon, or comma-delimited list of strings that represent the conditional identifiers used within any conditional compilation code.

Additional Compiler Options

This text box allows you to pass compiler options, that are not available in this dialog box, to the compiler. Any items entered in this text box are passed as command line settings to the compiler after all other options have been passed to the compiler.