Module Project Properties Dialog Box: Libraries

You open the Module Project Properties dialog box by right-clicking a module project and choosing Properties.

Element Description

Java Platform

Specifies the target JDK for building module projects or module suite projects.

NetBeans Platform

Specifies the target NetBeans platform against which the current module is compiled and run. Enabled for standalone modules, not for modules that are part of a module suite. Available NetBeans platforms are those that have been registered in the NetBeans Platform Manager.

Module Dependencies

Displays an alphabetical list of declared module dependencies, from the nbproject/project.xml file. Each list entry is displayed as the module's localized display name.

Click Add to add a new module dependency. The new dependency will initially request a major release version and specification version as taken from the module's manifest and be included in the classpath if there are any available packages. The new dependency will be selected so that you may use Edit to customize it immediately. If multiple dependencies were added, just one of them will be selected automatically. Click Remove to delete the selected item.

Required Tokens

Sets OpenIDE-Module-Requires in the MANIFEST.MF file. Displays a list entry for each token (sorted alphabetically).

Click Add to select a token from a of all available tokens, based on OpenIDE-Module-Provides of all available modules, as well as any special tokens defined by the Modules API. Click Remove to delete the selected item.

Wrapped JARs

Bundles an external JAR file with the module. Note that this is not a modular approach; ideally you would create a separate module containing the external JAR, rather than including it in the same module where you want to use it. Click Export to add the public classes in the JAR to the public interface of the module.


Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

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