I try to run tests JUnitfrom Eclipse, but during these tests I get ClassNotFoundException
Full stack trace:
java.lang.NoClassDefFoundError: from Reason: java.lang.ClassNotFoundException: from at java.net.URLClassLoader $ 1.run (URLClassLoader.java:202) in java.security.AccessController.doPrivileged (native method) on java.net.URLClasso .findClass (URLClassLoader.java:190) in java.lang.ClassLoader.loadClass (ClassLoader.java.307) at sun.misc.Launcher $ AppClassLoader.loadClass (Launcher.javahaps01) in java.lang.ClassLoader.loadClass ( ClassLoader.java:248) An exception in the thread "main"
I searched google for this and found that a couple of guys ran into this problem, but none of them seemed to solve my problem. This is probably due to the difference in platforms.
My development platform is as follows
OS: Windows XP
Eclipse JUNO
JUnit4
Maven2
On average, if I run this project using maven, it works absolutely fine.
The weirdest part for me is the name of the class for which ClassNotFoundException is thrown. Class name of.
This is what completely strikes me.
Besides the fact that the stack trace I have ever listed above is all that I get when I get nothing.
I am stuck in this release for 2 days, any help would be greatly appreciated.
source
share