Jeremy Stein - Brain

« »

The resource is not on the build path of a java project

If you get the Eclipse error “The resource is not on the build path of a java project”, it may be because you’re editing a derived file rather than a source file. This sometimes happens if you grab a file from search results without checking its path. It may be the wrong copy of the file and the source version is in another folder (and elsewhere in the search results).

You can prevent derived files from showing up in search results by right-clicking folders of derived files, selecting properties, and marking it as derived.

May 2, 2006 7 Comments.


  1. Oliver replied:

    Thank you so much for your explanation. I almost went mad over this problem! Keep the good work up 🙂

    All the best wishes to you,

    January 13th, 2008 at 6:53 pm. Permalink.

  2. pankaj replied:


    September 10th, 2009 at 11:39 am. Permalink.

  3. Michael replied:

    Great hint! Thank you very much, this Error drove me mad 🙂

    March 10th, 2010 at 9:12 am. Permalink.

  4. Dirk replied:

    Indeed a very helpful hint. Thanks!

    May 12th, 2010 at 4:27 pm. Permalink.

  5. gabe replied:

    Awesome that was easy…where is the button??? 🙂

    February 15th, 2011 at 11:23 am. Permalink.

  6. Akshay Sahu replied:

    Hey, gud 1 man !!! Rite on the money !!!

    August 22nd, 2011 at 2:45 am. Permalink.

  7. Vinayak replied:

    Thanks.,It really helped

    February 6th, 2013 at 1:16 pm. Permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?

« »