Building Applications 

 NetBeans IDE 3.6 


To build an application:

  1. Select the file or folder in the Filesystems window or open the file in the Source Editor.
  2. From the main window, choose one of the following:
    • Build > Compile (F9) to compile selected file or directory only. Only files that are out-of-date are compiled.
    • Build > Compile All (Shift-F9) to compile the selected directory and its subfolders.
    • Build > Build (F11) to delete all .class files in the selected file or directory and compile the source files. This command does not remove .class files or compile source files in subfolders.
    • Build > Build All (Shift-F11) to delete all .class files within a folder and its subfolders and then compile all files again.

The IDE displays the compiler output in the Output window at the bottom of the screen. You can double-click any compilation error to highlight the code causing the error in the Source Editor.

For a more detailed explanation of building Java applications in the IDE, see Using NetBeans IDE - Compiling Java Programs.

You can also build your programs using Ant. See Integrating Ant Scripts in NetBeans IDE for more information.