Module and Rich-Client Application Tasks: Quick Reference

This topic describes common tasks you can perform with module projects. For more detailed information, click the links in the right column.

To perform this task Follow these steps
Create a project.
  1. Choose File > New Project (Ctrl-Shift-N).
  2. Select the right template for your project. 
Add a JAR file to a project's classpath.
  1. Choose File > New Project (Ctrl-Shift-N).
  2. From the NetBeans Modules category, select Library Wrapper Module.
  3. Follow the steps in the rest of the wizard.
Set up deployment dependencies between projects.

After making a Module Suite project, you can create module projects in it, or add existing module projects to it. Then you can set up dependencies among projects in the suite by using the Libraries panel of each project's Project Properties dialog box. You create a module suite project as follows:

  1. Choose File > New Project (Ctrl-Shift-N).
  2. From the NetBeans Modules category, select Module Suite.
  3. Follow the steps in the rest of the wizard.
Build a project.
Clean a project.
  • Right-click the project node and choose Clean Project.
Run a project.
  • Choose Run > Run Main Project (F6) or right-click any project node and choose Run Project.
Attach source code to libraries for debugging.
  1. Choose Tools > Library Manager from the main window.
  2. If the JAR file is not already registered in the Library Manager, create a new library using the Add Library button.
  3. Select the library in the left panel of the Library Manager.
  4. In the Classpath tab, click Add JAR/Folder and specify the location of the JAR file containing the compiled class files. The JAR must be the copied version in the project's release/modules/ext/ directory, not its original location that you picked it up from when creating the library wrapper project. A library can contain multiple JAR files.
  5. In the Sources tab, add the folder or archive file containing the source code.
Add Javadoc to a project.
  1. Choose Tools > Library Manager from the main window.
  2. If the JAR file is not already registered in the Library Manager, register the JAR file as described above.
  3. In the Javadoc tab, click Add ZIP/Folder and specify the location of the Javadoc files.
Set the main project.
  • Right-click the project node and choose Set Main Project.

Legal Notices