TestNG java.lang.NoClassDefFoundError:com / google / common / primitives / Ints [英] TestNG java.lang.NoClassDefFoundError: com/google/common/primitives/Ints
本文介绍了TestNG java.lang.NoClassDefFoundError:com / google / common / primitives / Ints的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是学习TestNG的新手。我按照以下步骤操作:
I am new to learning TestNG. I followed these steps:
- 我创建了testng类
- @Test(dataProvider =registerData )
- 我写了一个带有四个参数的方法
- @DataProvider
- 呼叫数据提供者
- I have created testng class
- @Test(dataProvider="registerData")
- I wrote a method with four arguments and
- @DataProvider
- Call data provider
然后弹出以下错误:
TestNG java.lang.NoClassDefFoundError: com/google/common/primitives/Ints
我正在使用Eclipse Luna Release 2(4.4.2),Window 7
I am using Eclipse Luna Release 2 (4.4.2), Window 7
推荐答案
看来下面的jar在你的类路径中不可用。
com.google.guava_1.6.0.jar
It seems below jar is not available in your classpath. com.google.guava_1.6.0.jar
从下面的链接下载并将其添加到您的类路径。
Download from the link below and add it to your classpath.
这篇关于TestNG java.lang.NoClassDefFoundError:com / google / common / primitives / Ints的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文