当我很确定类路径是完美的时得到这个奇怪的错误。该错误甚至没有显示它无法找到的类名。请任何指点!
我在项目目录下的命令提示符下运行的命令是:
java -classpath randoop-all-3.0.1.jar;web/app/WEB-INF/classes/;C:/jdk-8u74-windows-x64/lib/missioncontrol/plugins/javax.servlet_3.0.0.v201112011016.jar randoop.main.Main gentests --classlist=myclasses.txt --timelimit=60
产生的错误是这样的:
Throwable thrown while handling command: java.lang.Error: No class found for type name ""
java.lang.Error: No class found for type name ""
at randoop.main.ThrowClassNameError.handle(ThrowClassNameError.java:11)
at randoop.reflection.OperationModel.addClassTypes(OperationModel.java:293)
at randoop.reflection.OperationModel.createModel(OperationModel.java:136)
at randoop.main.GenTests.handle(GenTests.java:194)
at randoop.main.Main.nonStaticMain(Main.java:61)
at randoop.main.Main.main(Main.java:27)
Randoop failed.
Last sequence under execution: null