[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Building project does not produce any .class files

Tim Wilkins wrote:
Hi all,

I've been using Eclipse for a while and this problem keeps popping up its head every now and again.

Somehow source files in a project seem to get ignored when I ask Eclipse to compile my project. I usually leave "Build Automatically" on but I've also tried with it off also.

It seems to occur when I move source files from package to package or when I manually delete the class files myself to force re-compilation.

The source files are on the build path (I've removed and re-added them several times). I've tried switching between the auto and manual compile options, cleaning the project, "Build All". Non of it seems to make a difference.

Has anyone experienced anything similar?

First of all, you don't have to delete .class files manually in order to trigger a re-compilation. You can select a Project and choose Clean... from the pop-up menu or the Project menu bar.


As to why you can't seem to get your project to build, it is almost always because of a problem with the Project's build path (eg, it can't find a library JAR you specified or something like that). Right-click the Project, choose Properties and then check the Java Build Path section (all tabs) to see if any errors are reported in the dialog. Such problems should also show up in the Tasks or Problems views, but may not be obvious to you if you have lots of other entries in those views.


p.s. This problem might of been dealt with before but I can't seem to find a way to search the newsgroup's archives. Is there a way to do this (as in so I don't have to download all the archived to my news reader to perform the search!)?

There's a web interface for searching the newsgroups (and other parts of eclipse.org) - go to the Eclipse home page and look at the side navigation panel for the Search link.


HTH,
	Eric
--------
Don't make me come down there!
          -God