By default, you do not need to manually compile the files in order to run your
application in the IDE. Files in a
standard Java project are compiled automatically when you save
the files.
Select the file in the Projects window, Files window, or Source Editor and
choose Run > Compile File (F9).
If you are using a , you need an Ant target for this command. The IDE offers to
generate a target the first time you choose the command. In the generated target,
you need to specify the directory where to put the compiled class. You can do so by
specifying a value for the build.classes.dir property in the generated target.
For example, you might add the following line to the line above the
<target name="compile-selected-files-in-src"> entry: