TestNG java.lang.NoClassDefFoundError:com / google / common / primitives / Ints [英] TestNG java.lang.NoClassDefFoundError: com/google/common/primitives/Ints

查看:163
本文介绍了TestNG java.lang.NoClassDefFoundError:com / google / common / primitives / Ints的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是学习TestNG的新手。我按照以下步骤操作:

I am new to learning TestNG. I followed these steps:


  1. 我创建了testng类

  2. @Test(dataProvider =registerData )

  3. 我写了一个带有四个参数的方法

  4. @DataProvider

  5. 呼叫数据提供者

  1. I have created testng class
  2. @Test(dataProvider="registerData")
  3. I wrote a method with four arguments and
  4. @DataProvider
  5. 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.

com.google.guava_1.6.0.jar

这篇关于TestNG java.lang.NoClassDefFoundError:com / google / common / primitives / Ints的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆