|ClassNotFoundException when running JUnit tests [message #896745]
||Thu, 19 July 2012 10:55
| Kris Ram
Registered: July 2012
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?
Powered by FUDForum
. Page generated in 0.02619 seconds