Eclipse Forgets how to Build [message #669493] |
Tue, 10 May 2011 14:14 |
Matt Holden 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 |
David Wegener 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.
|
|
|
Powered by
FUDForum. Page generated in 0.02360 seconds