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

3

49

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.

Mohun answered 23/7, 2011 at 21:9 Comment(0)
U
95

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.

Umpire answered 23/7, 2011 at 21:14 Comment(1)
This is the "Project" menu item. (as in, next to File, Edit, Source, etc, etc). I was initially right clicking the project and looking for it. #justTryingToMakeItClear #upVoteForAnswerInchon
T
16

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.

Terribly answered 23/7, 2011 at 21:16 Comment(1)
I actually know. See the accepted answer, that was perfectly what I wanted :DMohun
C
0

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

Chaqueta answered 22/10, 2020 at 15:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.