Ant exception javalangNoClassDefFoundError combeustjcommanderParameterException | Selenium Forum
U
Usha Gunalan Posted on 16/04/2019

Copied build.xml from Download Code link and tried to execute my project using ant. It gives the below error:

java.lang.NoClassDefFoundError: com/beust/jcommander/ParameterException

 

Also, the download link doesn't have all the jars. It just provides POI jars. Please help with this. Thanks. 

 

Also, there is a warning for the below lines in build.xml (Warning: taskdef class org.testng.TestNGAntTask cannot be found using the classloader AntClassLoader[])

<taskdef name="testng" classpath="${test.classpath}"
classname="org.testng.TestNGAntTask" />


A
Ashish Thakur Replied on 16/04/2019

make sure that TestNG plugin is installed or not?


A
Ashish Thakur Replied on 16/04/2019

Additionally also check that you're using the correct version of jars