Netbeans ignores class (+ solution)

The weirdest thing happened while I was programming with my favorite IDE, Netbeans 6.8, today. When I work on big applications, I usually split them in two or three projects (usually model, view, controller). Then I import the projects in the main application project. At some point Netbeans suddenly told me it couldn’t find a class in an imported project to which I referred, even though nothing was wrong with it, and everything compiled perfectly using Ant. Netbeans however insisted the class wasn’t there and produced error messages and enough red warning lines to make it unworkable.

I googled around a bit, but found nothing. So before trying to find the actual problem, I made a copy of the class that Netbeans couldn’t find, deleted the old one, and renamed the copy to the original. And then the problem was gone.

What gives?

  • Share/Bookmark

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 

March 2010
S M T W T F S
« Dec   Apr »
 123456
78910111213
14151617181920
21222324252627
28293031