Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/367.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在类路径中找不到类:_Java_Testng - Fatal编程技术网

Java 在类路径中找不到类:

Java 在类路径中找不到类:,java,testng,Java,Testng,在windows命令提示符下运行时,在classpath:中找不到类时出错。我知道以前也有人问过同样的问题,我试着跟踪所有的事情,但都没有成功。请给我一些建议。谢谢 这是我正在使用的命令 Java-cpc:\Users\Admin\Downloads\ 每日安装自动化主机\ daily-installer-automation-master-e26d3512b5f2770b8388270ffcc3078e32571d9a\ src\test\resources; C:\Users\Admin\

在windows命令提示符下运行时,在classpath:中找不到类时出错。我知道以前也有人问过同样的问题,我试着跟踪所有的事情,但都没有成功。请给我一些建议。谢谢

这是我正在使用的命令

Java-cpc:\Users\Admin\Downloads\
每日安装自动化主机\
daily-installer-automation-master-e26d3512b5f2770b8388270ffcc3078e32571d9a\
src\test\resources;
C:\Users\Admin\Downloads\daily installer automation master\
daily-installer-automation-master-e26d3512b5f2770b8388270ffcc3078e32571d9a\lib/*

org.testng.testng CreateUsers.xml
路径不应该以
..\lib\*
而不是
..\lib/*
结尾吗?感谢您的回复,但我仍然收到相同的错误。您是否尝试设置
CLASSPATH
环境变量,然后编译并运行它?不,我没有。我不知道怎么做。请给我一些建议。感谢您的
java-cp…
命令,我没有看到您想要运行的类名。您需要在该命令中指定
TestNG TestNG.xml