Java ME Embedded Project Properties Dialog Box: Sources

Use to view the location of the project folder, manage source folders, and set the source level of the packages that the IDE uses.

Use the buttons on the right side of the panel to add, remove, and change the order of classpath elements.

Element Description

Project Folder

Displays the path to the project folder.

Source Package Folders

Specifies the folder that contains the Java source code for the project.

You must set the Source Package Folders to the folder that contains the default package.

Source/Binary Format

Specifies the JDK version that applies to the lowest Java platform version with which the Java code in your project is compatible. Default options range from JDK 1.3 to 8.

This setting corresponds to the javac -source option. Setting the source/binary format helps prevent you from using Java language constructs that are not available in the platform version to which you want to deploy. However, setting the source/binary format does not ensure that the platform APIs are used compatibly with that platform version. To make sure that your application is fully compatible with an earlier Java platform version, switch to the Libraries tab and set the Java Platform setting to the minimum version on which you plan to deploy

Includes/Excludes

Includes or excludes specific classes in or from compilation.

In the Configure Includes and Excludes dialog, use regex patterns in the Includes and Excludes fields to specify which classes on the project classpath you want to have compiled. The Included Files and Excluded Files panes list the resources that are compiled based on the supplied patterns.

Encoding

Specifies the character encoding the IDE applies when it saves and displays project source files.

The project character encoding determines how the IDE interprets characters in your source files. The IDE displays and saves any new files you create using the encoding set by the project in which they reside. The default character encoding used with projects is UTF-8. Use the Encoding drop-down to change the character encoding used with the project.


Note: Specifying the source/binary format does not change the Java platform. To set the Java Platform from which the tools are used or set the Java ME Platform that is used for compiling and running your project, click Platform and set the JDK Path and Java ME Platform settings accordingly. You cannot set the source/binary format of a project to a higher release than the lower value of the project's JDK or Java ME platform.


Related Topics

Developing Applications with NetBeans IDE,

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