Elliotte Rusty Harold is reporting a disconnect, in Eclipse 3.2, between the path the compiler sees and what the interpreter sees. "Eclipse 3.2 is driving me nuts. For reasons I just can’t understand or debug it keeps throwing NoClassDefFoundError when I try to run most code in my project:
Exception in thread "main" java.lang.NoClassDefFoundError: nu/xom/Element
However, it can compile the classes it complains about not finding just fine. There appears to be a disconnect between the path the compiler sees and what the interpreter sees.
I can run simple Hello World applications in other subpackages (e.g. nu.xom.samples) but not anything in the main package (nu.xom) nor anything in a subpackage that references the main package. I’ve tried completely reinstalling Eclipse and nuking all my preferences (not an easy task since Eclipse spews them all over various locations on the disk, and tries to hide them from the user) but to no avail. The problem reoccurs."
Elliotte Rusty Harold has I’ve filed two bug reports with Eclipse about this: