Compiling a Single Java File

See Also 

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.

If you have turned off the Compile on Save feature for a project, you can compile files by building the project or by compiling individual files.

To compile an individual file:

See Also
Building Tasks: Quick Reference
Building a Project
Building a JAR File
Managing the Classpath
Customizing the Ant Build Script

Legal Notices