Compiling a Java Program
See Also
You can compile all files in a program or only those files that are new or
have changed since the last compile. If a file needs to be compiled, the badge
is displayed on the Java class node in the Filesystems window.
To compile a program:
- Select the file or folder in the Filesystems window or open the file in
the Source Editor.
- From the main window, choose one of the following:
- Build
Compile (F9)
to compile only those files that are new or have changed since the last
compile. The up-to-date check is done by comparing timestamps between
the source (.java) and products (.class) of the compile.
This command does not compile the files in subfolders.
- Build
Compile All
(Shift-F9) to compile only those files that are new or have changed since
the last compile, including the files in subfolders.
- Build
Build (F11)
to delete the sourcename.class files in the folder 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 build all files within the folder and subfolders.
If you have enabled JavaMake to manage compilation dependencies, the Build
and Compile commands behave as follows:
- Compile/Build. Only compiles or builds the selected files without checking
the status of dependent classes.
- Compile All/Build All. Compiles the selected file and checks all dependent
classes in the JavaMake project database. If any dependent classes are not
up-to-date, the IDE compiles them.
See Managing Dependencies Between Java Classes for
more information.
 |
You can turn off the display of the compile
status badge ( ) on the node for a Java class file.
In the Options window, expand the Editing node and select Java Sources. Change
the Show Compile Status property to False.
|
Legal Notices