You can compile, run, and debug projects with commands from the Project menu.
To compile a project:
All uncompiled classes and files with out-of-date .class files on the Project tab are compiled. Any classes that these compiled classes are dependent on are also compiled.
To force compilation of all files in a project:
All classes on the Project tab and the classes they are dependent on are compiled.
To run a project:
![]() |
If a class does not appear in the Select Project Main
Class dialog box, it has not been added to the project. You can add a class to a
project by right-clicking its node in the Explorer and choosing
Tools ![]() |
To debug a project:
![]() |
You can also compile and build by class or by directory. Right-click
a node in the Explorer and choose the appropriate command.
You can run a class by right-clicking its file node and choosing Execute.
You can debug a class by selecting its file node and choosing Debug ![]() |
See Also | |
---|---|
Projects in the IDE Creating a New Project Adding an Existing File to a Project Adding a New File to a Project Compiling Java Programs Running Java Programs Debugging Programs |