How to achieve that Eclipse clean and build (aka rebuild)?

JavaEclipseHeliosRebuild

Java Problem Overview


I deleted my ./bin folder in an Eclipse Indigo (super similar to Helios), and now I am wondering how to rebuild my Java project. I just cannot find a button like we can see in Netbeans.

Java Solutions


Solution 1 - Java

For Eclipse you can find the rebuild option under Project > Clean and then select the project you want to clean up... that's all.

Eclipse Clean projects selected below

This will build your project and create a new bin folder.

Solution 2 - Java

In Eclipse there is an "Auto Build" option, which is checked by default. When it is checked, you don't need to build your project, this happens automatically. If this behaviour is unwanted, uncheck this option and click build project whenever you want.

To clean a project, select Clean Project. This will delete the bin folder, however if Auto build is checked, it will be immediatelly regenerated.

Solution 3 - Java

In case you are unable to find a file in Eclipse code after pulling code from git or creating a file in intelliJ seperately (my case) you ca do the following

Right click on 'src' folder and in the menu that appear click on the 'refresh' button

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionimacakeView Question on Stackoverflow
Solution 1 - JavaAbhishek SinghView Answer on Stackoverflow
Solution 2 - JavakgiannakakisView Answer on Stackoverflow
Solution 3 - JavaShubham GoelView Answer on Stackoverflow