Eclipse Compiling a Project
Compiling a Java project
A project can be associated with multiple compilers.
A java project is associated with the java compiler. You can view the compilers associated with a project in the following ways:
- Right-click the project in the Package Explorer view and select Properties
- Click Builders in the tree menu on the left
The java compiler is used to compile java projects. By clicking the New button, we can associate an Ant builder compiler with a java project.
The java compiler generates class files by compiling java projects. When the project source changes, the java code is automatically recompiled.
You can disable automatic compilation by removing the Build Automatically item in the Project menu.
If you disable automatic compilation, you need to compile the java project through the Build Project menu item in the Project menu. If the Build Automatically item is checked, the Build Project (manual compilation) menu item is unavailable.