Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Clean, Auto Build does not work
icon9.gif  Clean, Auto Build does not work [message #649794] Thu, 20 January 2011 15:47 Go to next message
Athena  is currently offline Athena Friend
Messages: 3
Registered: January 2011
Junior Member
My problem is that the "Clean" and "Build Automatically" options are not working.

I have been using Eclipse Galileo for the last six months. Everything was working fine till today. Today, I ran out of space while Eclipse was running, and I got errors like "Could not save workbench status, etc. ". I cleared some junk making a lot of free space, but then eclipse stopped building my project. So, I did a "Clean" and tried building again, but no use. I restarted eclipse, switched off and on the "Build Automatically" option, without any use.

Now, both the "Clean" and "Build Automatically" options have no effect.

How can I resolve this?
Re: Clean, Auto Build does not work [message #649889 is a reply to message #649794] Thu, 20 January 2011 20:52 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

It sounds a bit weird, but sometimes Eclipse gets really a mess with
files it has in it's caches and on the disk (especially Eclipse project
relevant files like .classpath and .project and in case they are
modified from outside like mvn eclipse:eclipse does...).

The following touching of all .classpath and .project files often
helps (example uses bash / cygwin bash):
- turn "built automatically" off
- close eclipse
- $ cd <workspace>
- $ find . -name .classpath | xargs touch
- $ find . -name .project | xargs touch
- start eclipse
- select all projects and then "Refresh" from the menu (Keyboard
shortcut is sometimes unreliable)
- Project > Clean
- Turn "build automatically" on

HTH
Michael
Re: Clean, Auto Build does not work [message #649947 is a reply to message #649889] Fri, 21 January 2011 07:03 Go to previous messageGo to next message
Athena  is currently offline Athena Friend
Messages: 3
Registered: January 2011
Junior Member
Hi,

I carried out all the steps you have mentioned. After reopening eclipse, I can clean the project. That is, all the contents of the bin folder are deleted. But I still cannot build the project. "Build Automatically" or simple "Build project" also does not work.

Also, I noticed that this problem is only for one specific project. All other projects have no problems.

I also checked to see if the output folder is writable, it is. I can also build the project through ant which has a different output folder.
Re: Clean, Auto Build does not work [message #650063 is a reply to message #649947] Fri, 21 January 2011 14:55 Go to previous messageGo to next message
David Kerber is currently offline David KerberFriend
Messages: 100
Registered: July 2009
Senior Member
In article <ihbaq5$egf$1@news.eclipse.org>, athena_acq@hotmail.com
says...
>
> Hi,
>
> I carried out all the steps you have mentioned. After reopening eclipse, I can clean the project. That is, all the contents of the bin folder are deleted. But I still cannot build the project. "Build Automatically" or simple "Build project" also does not work.
>
> Also, I noticed that this problem is only for one specific project. All other projects have no problems.
>
> I also checked to see if the output folder is writable, it is. I can also build the project through ant which has a different output folder.

Did you try starting eclipse with the -clean option on its command line?
That fixes some weird problems IME.
Re: Clean, Auto Build does not work [message #650102 is a reply to message #650063] Fri, 21 January 2011 17:59 Go to previous messageGo to next message
Athena  is currently offline Athena Friend
Messages: 3
Registered: January 2011
Junior Member
@David: yes, I did.
What I do not understand is that only one project in the workspace has this problem. The other projects are not affected.
Re: Clean, Auto Build does not work [message #650144 is a reply to message #650102] Fri, 21 January 2011 22:41 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1351
Registered: July 2009
Senior Member
On Fri, 2011-01-21 at 12:59 -0500, Athena wrote:
> @David: yes, I did.
> What I do not understand is that only one project in the workspace has this problem. The other projects are not affected.

Have you checked to make sure that there are no problems indicated on
the project that doesn't build. If there are Build Path errors for the
project, it won't build till they are resolved.

Open the Problems view and select the project to show any problems
associated with it.
Re: Clean, Auto Build does not work [message #650252 is a reply to message #650063] Sun, 23 January 2011 21:09 Go to previous messageGo to next message
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member
Hi

> Did you try starting eclipse with the -clean option on its command line?
> That fixes some weird problems IME.
-clean does not do what many users expect. Well, it does some cleanup in
the OSGi area, but other cached data and project metadata are unaffected.
The Workspace Rebuilder of the optional Core Tools [1] goes more into
the direction of what users want when trying -clean.

[1] http://www.eclipse.org/eclipse/platform-core/downloads.php

HTH
Michael
Re: Clean, Auto Build does not work [message #1453664 is a reply to message #649794] Mon, 27 October 2014 09:32 Go to previous message
Mohd Hafizzul Mohd Salleh is currently offline Mohd Hafizzul Mohd SallehFriend
Messages: 1
Registered: October 2014
Junior Member
I face the same problem while after moving the workspace from another computer. I think the .metadata folder's contents has ben messed up because after replacing the whole .metadata folder with the old one, I can compile again.
Previous Topic:Errors in PyDev in Eclipse
Next Topic:GlassFish integration to Eclipse Error
Goto Forum:
  


Current Time: Thu Dec 18 15:24:49 GMT 2014

Powered by FUDForum. Page generated in 0.02832 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software