Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Can Eclipse build to a location where there are existing .class files?
Can Eclipse build to a location where there are existing .class files? [message #41747] Tue, 14 January 2003 16:59 Go to next message
No real name is currently offline No real nameFriend
Messages: 8
Registered: July 2009
Junior Member
I am working on a subproject of a much larger project. The project delivers
files a "classes" directory, and it expects to see all classes there,
including mine.

So I changed my project's build path (in Eclipse) to point to this classes
directory. However the build then gave an error saying it could not clean
the output path. OK, it couldn't because it didn't know about all the
..class files and other packages already in the classes directory. I don't
know why it would want to clean all those, but it does!

So I went back to the project settings, Java Compiler, Other - then Use
Project Settings and deselect "Allow to clean output folders for a fully
build". (The wording's a big dodgy and this field isn't in the Help.)

Great! Now Eclipse gets much further. No cleaning to break! However,
because the .class files for my project are out there (not cleaned up), when
I do a Rebuild it gives an error for every file saying the .class file is
not written out! It can't compile a .java if the .class file is already out
there? And no, the .class file is not read-only.

So I delete all the .class files for my project. It still doesn't build! I
have to Refresh the project (I guess so it can spot all the .class files are
now gone) and the build works.

Yahoo! However, I don't want to have to clean all my .class files and
Refresh the project just to build. Is there a better way?

Could "Cleaning" the output folders just clean up .class files that will be
created by my project?

Or with cleaning off, could the compiler please overwrite an existing .class
file?

Cheers,
Graham Perks
graham_perks at my work, bmc.com
Re: Can Eclipse build to a location where there are existing .class files? [message #41816 is a reply to message #41747] Wed, 15 January 2003 12:05 Go to previous message
Eclipse UserFriend
Originally posted by: meg.zurich.ibm.com

Graham,

sounds like a bug. Please report it in bugzilla
(http://dev.eclipse.org/bugs/enter_bug.cgi) and add steps to reproduce.

Thanks,
Dani
Re: Can Eclipse build to a location where there are existing .class files? [message #588725 is a reply to message #41747] Wed, 15 January 2003 12:05 Go to previous message
Eclipse UserFriend
Originally posted by: meg.zurich.ibm.com

Graham,

sounds like a bug. Please report it in bugzilla
(http://dev.eclipse.org/bugs/enter_bug.cgi) and add steps to reproduce.

Thanks,
Dani
Previous Topic:can eclipse develop J2EE?
Next Topic:org.eclipse.jface.text.rules problem
Goto Forum:
  


Current Time: Fri Apr 26 08:00:02 GMT 2024

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

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

Back to the top