Disabling Compilation of a Java Source File

See Also 

You can disable the compilation of a source file so that the next time you compile the package or project, that file is not compiled. For example, if a project contains an old version of a file you are working on and that file contains another definition of the same class, you can disable its compilation so you won't get a duplicate class definition error.

To turn off the compilation of a source file:

  1. Right-click the file in the Filesystems window and choose Properties.
  2. Set the Compiler property to (do not compile).
Note Disabling compilation for a single class prevents the IDE from passing the name of the file to the compiler. However, if another class is dependent on that class, the compiler may include the disabled class in that compilation.
See Also
Disabling Compilation for a Filesystem
Stopping a Compile

Legal Notices