Eclipse IDE – How to build Java project 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

1. 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

2. 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

Option 1:

  • Simply, uncheck “Build Automatically” from Project menu, as shown in the below screen-capture

Option 2:

  • Disable “Build Automatically” through Windows –> Preferences –> General –> workspace, as shown in the below screen-capture
  • Uncheck “Build Automatically

3. Useful Eclipse IDE shortcuts :

Related Articles:

References:

Happy Coding !!
Happy Learning !!

Eclipse IDE - How to comment and uncomment line & block ?
Eclipse IDE - How to clean projects ?