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. |
- Choose File > New
Project (Ctrl-Shift-N).
- Select the right template for your
project.
|
| Add a JAR file to a project's classpath. |
- Choose File > New Project
(Ctrl-Shift-N).
- From the NetBeans Plug-in Module category, select Library Wrapper Module Project.
- Follow the steps in the rest of the wizard.
|
| Set up deployment dependencies between projects. |
- Choose File > New Project
(Ctrl-Shift-N).
- From the NetBeans Plug-in Module category, select Module Suite Project.
- Follow the steps in the rest of the wizard.
|
| Build a project. |
- Choose Build > Build
Main Project (F11) or right-click any project node and choose Build
Project. In addition, you can use the IDE
to build the following:
|
| 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. |
- Choose Tools > Library
Manager from the main window.
- If the JAR file is not already registered in the Library Manager,
create a new library using the Add Library button.
- Select the library in the left panel of the Library Manager.
- In the Classpath tab, click Add JAR/Folder and specify the location
of the JAR file containing the compiled class files. A library can contain
multiple JAR files.
- In the Sources tab, add the
folder or archive file containing the source code.
|
| Add Javadoc to a project. |
- Choose Tools > Library
Manager from the main window.
- If the JAR file is not already registered in the Library Manager,
register the JAR file as described above.
- 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.
|