且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

线程“主”中的异常尝试运行TestNG类时,Eclipse中出错

更新时间:2022-06-17 05:48:35

如果您正在使用没有maven的项目,请确保您将jcommander.jar文件添加到类路径中。确保您的项目结构有一个TestNG库,其中只有一个testng.jar文件。

Make sure you added the jcommander.jar file to your classpath if you are using a project without maven. Make sure your project structure has a "TestNG" library that has only one testng.jar file inside it.