Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsClassNotFoundException when running JUnit tests
https://www.eclipse.org/forums/index.php/mv/msg/367785/896745/#msg_896745
I am using Eclipse Indigo (but I have noted the same problem with other versions as well) and my projects are Maven based. I import my projects as simple projects, but they get changed to Maven projects anyway. The build fails becuase it fails to find my toolchain, but the build works fine when using Maven on the command line. So I manually disable dependency management.
I often get the problem of ClassNotFoundException when running units tests, and for some reason the tests could not be found.
The error somehow goes away after a combination of reimporting,cleaning, mvn eclipse:eclipse etc...
I wanted to understand what is actually going on. Where is it storing the .class files? Why would it find it at some point and then after an 'mvn eclipse:eclipse' it throws ClassNotFoundException.
Could the problem be with the JUnit plugin on eclipse?
Cheers
kris
]]>Kris Ram2012-07-19T14:55:13-00:00Re: ClassNotFoundException when running JUnit tests
https://www.eclipse.org/forums/index.php/mv/msg/367785/896777/#msg_896777
David Wegener2012-07-19T17:05:05-00:00Re: ClassNotFoundException when running JUnit tests
https://www.eclipse.org/forums/index.php/mv/msg/367785/897194/#msg_897194
sorry my terminology was incorrect, by simple projects I actually meant Java projects (instead of Maven projects).
So would you know why the tests occasionally fails after an eclipse:eclipse is performed. Where does the JUnit plugin normally looks for its .class files?