Creating a Library Wrapper Module Project
See Also
Use a library wrapper module project template to create a library wrapper module
project. Library wrapper module projects put one or more library
JAR files on a module's classpath. You have to export some or all of the packages as public, and you need to have a regular module depend on it,
or the library wrapper module
becomes useless. The wizard that you use to create the library wrapper module
project automatically exports as public any packages it finds in the JARs.
To create a library wrapper module project:
- Choose File > New Project
(Ctrl-Shift-N).
- From the NetBeans Modules category, select Library Wrapper Module.
- In the Select Library panel, specify the following:
- Library. Specifies one or more JAR files that make up the
library. Use Shift-Click and Ctrl-Click to select more than one JAR file.
You are encouraged to only include more than one JAR file if their
versions are likely to increment at the same time.
- License. Specifies the License of the JAR files.
- In the Name and Location panel, specify the following:
- Project Name. Specifies the folder in which the project
will be housed, prepended by the project location, which
is specified in the next field.
- Project Location. Specifies the location where you want to store the
project metadata and source code.
- Project Folder. Specifies the folder where you want
to store the project metadata and source code. The folder is a concatenation
of the project location and the project name.
- Add to Module Suite. Specifies that the module belongs to a module suite. If the module
suite is not currently open in the IDE, click Browse to locate the module suite in your
filesystem.
- Click Next.
- In the Basic Module Configuration panel, specify the following:
- Code Name Base. Specifies a unique name for the module. A main
package will be created with the same name as the code name base. If your
code name base is org.modules.foo, your default package structure will be
org/modules/foo.
- Module Display Name. Specifies the name that will be displayed
in the Projects window.
- Localizing Bundle. Specifies location of the Bundle.properties
file. Normally, the default suggestion should be appropriate.
- Click Finish.
- See Also
- About NetBeans Platform and Module Development
- About the NetBeans Platform
- About the System Filesystem
- About NetBeans Platform and Module Development
- Working with Modules
- Module Tasks: Quick Reference
Legal Notices