Building Tasks: Quick Reference

This topic describes common tasks you can perform when building a project. For more detailed information, click the links in the right column.

To perform this task Follow these steps
Add a JAR file to a project's classpath.
  1. Open the Project Properties dialog box by right-clicking the project node and choosing Properties from the Project window.
  2. Select the Libraries node in the Categories pane. Then click the Compile tab.
  3. Click Add JAR and select the JAR file in the file chooser.
Add an IDE project to a project's classpath.
  1. Open the Project Properties dialog box by right-clicking the project node and choosing Properties from the Project window.
  2. Select the Libraries node in the Categories pane. Then click the Compile tab.
  3. Click Add Project and select the project directory for the project you want to add.
Build a project.
  1. Select the node of the project you want to build.
  2. Choose Run > Build Main Project (F11) or right-click any project in the Projects window and choose Clean and Build Project.
Stop building a project.
  • Choose Run > Stop Build/Run from the main menu.
Compile a single file.
  1. Select the node of the file you want to build.
  2. Choose Run > Compile File (F9).
Clean a project.
  • In the Projects window, right-click the project node and choose Clean Project.
Clean and build the main project.
  1. Select the node of the project you want to clean and build.
  2. Choose Build > Clean and Build Main Project (Shift-F11).
View build output.
  1. In the Files window, expand the project folder node.
  2. Expand the build folder to view compiled classes.
  3. Expand the dist folder to view Javadoc files and built libraries, such as JAR files and WAR files.
Correct compilation errors.
  • In the Output window, double-click any Java syntax error to jump to the location in the source code where the error occurred.
  • In the Output window, double-click any Ant error to open the Ant script in the target that failed.

Legal Notices