MIDP Project Properties: Compiling

Use to set compiling options for a project configuration.

Choose Build > Compiling from the project properties dialog box to access this page.

Element Description

Use Values from "Default Configuration"

Enables you to customize the properties for a project configuration other than the default configuration if this option is unchecked.

Generate Debugging Info

Generates line numbers and source files information.

This is the -g option in javac. If unchecked, no debugging information is generated (the -g:none option in javac).

Compile with Optimization

Optimizes the compiled application for execution.

This is the -O option in javac. Optimizing can slow down compilation, produce larger class files, and make the program difficult to debug.

Report Uses of Deprecated APIs

Lists each use or override of a deprecated member or class.

This is the -deprecated option in javac. If unchecked, the compiler shows only the names of source files that use or override deprecated members or classes.

Encoding

Overrides default encoding used by preprocessor and compiler.

The default value is the default encoding used by your JVM and IDE.

Debug Block Level

Sets the debug level for the //#debug and //#mdebug preprocessor directives.

If you enter a unique value for the level (for example, debug_graphics), the preprocessor allows only debug blocks that exactly match the debug block (for this example, //#debug debug_graphics). All other debug blocks are commented out.

If you choose a pre-defined level from the drop-down menu, the preprocessor comments out debug blocks on lower levels, as defined by the following hierarchy:

  • fatal (most exclusive)
  • error
  • warn
  • info
  • debug (most inclusive)

For example, if you choose warn, all info and debug blocks are commented out.



Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2013, Oracle and/or its affiliates. All rights reserved.