|
我安装并配置了junit,但在执行示例程序时老是出现错误,是不是环境变量有问题啊,兄弟们帮我看看:
E:\Java\junit4.4>java junit.textui.TestRunner junit.samples.ALLTests
Exception in thread "main" java.lang.NoClassDefFoundError: junit/samples/ALLTe
s (wrong name: junit/samples/AllTests)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
4)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251) |
|