Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse Forgets how to Build
Eclipse Forgets how to Build [message #669493] Tue, 10 May 2011 14:14 Go to next message
Matt Holden is currently offline Matt HoldenFriend
Messages: 1
Registered: May 2011
Junior Member
Greetings, all. I've been using Eclipse for several years, and this one really has me stumped.

My new job has three Java projects it uses, that work together - a Common project for our API, and then a Server and Client project.

I find that I'm having to rebuild my environment every few days. Eclipse will refuse to build the projects at all, forcing me to do many clean/rebuild cycles during which it won't create the new bin files - sometimes it creates nothing, sometimes it creates empty folders. Sometimes, it STILL won't build, and I need to go into the project settings and change the output path to something else to get it to build.

Additionally, I will occasionally get issues where the Client or Server can't see the classes in the Common project, and right now, I've got an issue where one class in the Server literally cannot resolve a class that is in the same package, even if I add an explicit import.

This is costing me a tremendous amount of productivity; just today, I fixed a bug in 5 minutes and have now spent the last three hours trying to get my environment to successfully build all three projects so I can test it. It's getting very frustrating.

I'm running Win7/64. I had originally been running Helios 64 with JDK 1.60.25/64, but in an effort to resolve the problem, went down to Galileo/32 and JDK 1.60.25/32. Still happening constantly.

Any assistance would be greatly appreciated.
Re: Eclipse Forgets how to Build [message #669622 is a reply to message #669493] Wed, 11 May 2011 00:20 Go to previous message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 05/10/2011 09:14 AM, Matt Holden wrote:
> Greetings, all. I've been using Eclipse for several years,
> and this one really has me stumped.
>
> My new job has three Java projects it uses, that work
> together - a Common project for our API, and then a Server
> and Client project.
> I find that I'm having to rebuild my environment every few
> days. Eclipse will refuse to build the projects at all,
> forcing me to do many clean/rebuild cycles during which it
> won't create the new bin files - sometimes it creates
> nothing, sometimes it creates empty folders. Sometimes, it
> STILL won't build, and I need to go into the project
> settings and change the output path to something else to
> get it to build.
>
> Additionally, I will occasionally get issues where the
> Client or Server can't see the classes in the Common
> project, and right now, I've got an issue where one class
> in the Server literally cannot resolve a class that is in
> the same package, even if I add an explicit import.
>
> This is costing me a tremendous amount of productivity; just
> today, I fixed a bug in 5 minutes and have now spent the
> last three hours trying to get my environment to
> successfully build all three projects so I can test it.
> It's getting very frustrating.
>
> I'm running Win7/64. I had originally been running Helios 64
> with JDK 1.60.25/64, but in an effort to resolve the
> problem, went down to Galileo/32 and JDK 1.60.25/32. Still
> happening constantly.
>
> Any assistance would be greatly appreciated.
>

Check to see if the output folders for the different projects overlap.
I've seen problems similar to this when they do. Cleans will wipe out
the output folders by default. The projects that aren't being cleaned
lose their class files.

You can turn off the the output folder scrubbing
(Windows->Preferences->Java->Compiler->Building) Expand the Output
Folders section on the right and clear Scrub output folders when
cleaning projects.
Previous Topic:coloring of string delimiters
Next Topic:Rename Java Package programmatically
Goto Forum:
  


Current Time: Tue Mar 19 06:20:57 GMT 2024

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

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

Back to the top