Ant exception javalangNoClassDefFoundError combeustjcommanderParameterException | Selenium Training|Java|WebDriver|TestNG|Frameworks|Videos
10% June Month Discount Avail now

Selenium Training Forum

Ant exception javalangNoClassDefFoundError combeustjcommanderParameterException

U
Usha Gunalan Post 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" />

D

Instructor

Demo Reply on 16/04/2019

make sure that TestNG plugin is installed or not?

D

Instructor

Demo Reply on 16/04/2019

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