TestNG运行报错:Error: A JNI error has occurred

来源:互联网 发布:nymex天然气 数据 编辑:程序博客网 时间:2024/05/16 04:19

第一次运行testNG,发现报错:Error: A JNI error has occurred . Please check your installation and try again.


追根究底,就是jar包不完整的原因。导入jcommander-1.48.jar包后运行,没有再提示此错误。

下载途径:http://download.csdn.net/detail/u010340178/9782044


另外,在testNG中还会经常使用到另外一个jar包,testng-6.8.21.jar,包含了org.testng.CommandLineArgs,org.testng.annotations.*等类,可一同加入。

下载途径:http://download.csdn.net/detail/u010340178/9782050


1 1
原创粉丝点击