Suddenly can't run TestNG tests from ant ([testng] Caused by: java.lang.ClassNotFoundException: com.beust.jcommander.ParameterException)

后端 未结 7 1464
走了就别回头了
走了就别回头了 2020-12-01 21:29

I am using ant and TestNG 6.1.1, and I had my tests working just fine yesterday. Today when I try to run the tests I get a NoClassDefFoundError involving com/beust/jcommand

7条回答
  •  自闭症患者
    2020-12-01 22:02

    jcommander.jar (e.g. jcommander-1.29.jar) should be present on fileset directory which is mentioned at build.xml

    You can download it from: http://mvnrepository.com/artifact/com.beust/jcommander/1.27

    OR,

    JCommander should be inside testng.jar during using ant. Your testng.jar file might be corrupted, so please replace old testng.jar by new one.

提交回复
热议问题