When you set up a project, the IDE provides a default classpath and compilation settings, so the project should be ready to compile as soon as you have added some classes to the project. You can compile an individual file or package by right-clicking its node and choosing Compile. But more typically, you will "build" the entire project. Building, depending on project type, typically consists of compiling projects and subprojects and creating outputs such as JAR files for each of those projects. To build your project, right-click the project's node in the Projects window and choose Build Project. If that project is currently designated as the main project (the project name is in bold in the Projects window), you can choose Build | Build Main Project or press F11. If you want to delete the products of previous builds before building again, choose Build | Clean and Build Main Project or press Shift-F11. When you initiate a build, the IDE tracks the progress of the build in the Output window in the form of Ant output.
See Chapter 3 for more detailed information on building your project. |