我尝试在 mac 中使用磨床测试框架,但我无法通过打开控制台的第一步。这就是我尝试过的:我添加了类路径并尝试使用此命令从终端像这样运行它
java net.grinder.Console
但我收到此错误:
Error running worker process (org/picocontainer/ComponentFactory)
Exception in thread "main" java.lang.NoClassDefFoundError: org/picocontainer/ComponentFactory
at net.grinder.engine.process.GrinderProcess.run(GrinderProcess.java:309)
at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:86)
at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:58)
Caused by: java.lang.ClassNotFoundException: org.picocontainer.ComponentFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
这是我正在关注的教程,任何人对此都有一些想法。