Java 设置类路径时出错
我想在project Async HTTP Client的类Realm.java上运行一个自动测试用例生成工具 我找到了它的路径:Java 设置类路径时出错,java,unit-testing,automated-tests,Java,Unit Testing,Automated Tests,我想在project Async HTTP Client的类Realm.java上运行一个自动测试用例生成工具 我找到了它的路径: [dario@bob async-http-client]$ find /home/dario/async/553/prefix -name Realm.java /home/dario/async/553/prefix/async-http-client/api/src/main/java/org/asynchttpclient/Realm.java 因此,将类
[dario@bob async-http-client]$ find /home/dario/async/553/prefix -name Realm.java
/home/dario/async/553/prefix/async-http-client/api/src/main/java/org/asynchttpclient/Realm.java
因此,将类路径设置为:
[dario@bob async-http-client]$ echo $CLASSPATH
/home/dario/async/553/prefix/async-http-client/api/src/main/java:/home/dario/async/553/prefix/async-http-client/evosuite-tests:/home/dario/testEnv/684131/prefix/rhino/lib/xbean.jar:/home/dario/evosuite/target/evosuite-0.1-SNAPSHOT-jar-minimal.jar
但当我运行命令生成测试时:
[dario@bob async-http-client]$ ~/evosuite/target/bin/EvoSuite -class org.asynchttpclient.Realm -projectCP /home/dario/async/553/prefix/async-http-client/api/src/main/java:/home/dario/testEnv/684131/prefix/rhino/lib/xbean.jar
* EvoSuite 0.1-SNAPSHOT
* Unknown class: org.asynchttpclient.Realm
我听说这门课不存在
想法?据谷歌透露,EvoSuit需要编译类 我的猜测是您没有编译这个类,或者它落在了另一个目录中