Quaatso Education

Home Forums Java Forum how to rectify the jni error while running the testNG program Reply To: how to rectify the jni error while running the testNG program

Reply To: how to rectify the jni error while running the testNG program

Home Forums Java Forum how to rectify the jni error while running the testNG program Reply To: how to rectify the jni error while running the testNG program

#4376

Nandan Singh
Keymaster

Ravinder, The main cause of this problem is non-availability of Jar files required by TestNG to run a test case.

There are multiple solution of this problem :

1. Use latest eclipse version and use latest Testng Plugin.

2. If you are still getting this error , then go to following URL and download JAR file of “JCommander”:

http://mvnrepository.com/artifact/com.beust/jcommander/1.7

3. Add above Jar file just like other APIs and rerun your test case. It must solve your problem.