How to build Java project in Eclipse IDE automatically

In this article, we will discuss how to build Java projects automatically in Eclipse IDE

Eclipse IDE:

  • Eclipse IDE provides number of features to make developers task cut easy
  • One such thing is, to enable “Build Automatically” option which perform incremental build whenever resources is modified/edited/saved

 

To enable Build Automatically feature in Eclipse IDE:

There are 2 options available,

  1. Using Project Menu –> Build Automatically
  2. Enabling through Windows –> Preferences –> General –> workspace

 

Option 1: Go to Menu option –> Select Project –> check Build Automatically

 

Option 2: Go to Menu option –> Select Windows –> Preferences –> General –> workspace

Note: here, we can clearly specify after how long (in ms) project should be re-build

 

To disable Build Automatically feature in Eclipse IDE:

Sometimes, it is quite annoying that even for a small change, eclipse starts building project. So, it is better advised to disable “Build Automatically” option from Project Menu

 

For Option 1: Simply, uncheck “Build Automatically” from Project menu, as shown in the below screen-capture

 

For Option 2: Disable “Build Automatically” through Windows –> Preferences –> General –> workspace, as shown in the below screen-capture

Uncheck “Build Automatically

 

References:

 

Happy Coding !!
Happy Learning !!

How to comment and uncomment line & block in Eclipse IDE
How to clean project in Eclipse IDE