I wanted to invoke testng programmatically. Not eclipse plug-in.
I have associated \"testng-6.8.21.jar\" and running through eclipse and i ran below code:
If you use a Maven project, you need add this dependancy:
com.beust
jcommander
1.48
the class com/beust/jcommander/ParameterException is inside
If you use a project without Maven you need add this jar file at your classpath:
jcommander-1.48.jar
You can download this jar file on central.maven.org -> jcommander-1.48.jar