Error: a JNI error has occurred

The first time I ran testNG, I found an Error: Error: A JNI Error has occurred. Please check your installation and try again.

To get to the bottom of this, the JAR package is incomplete. After importing the JCommander -1.48.jar package to run, no more prompt for this error.
Download way:

In addition, in the testNG will often use to another jar package, testNG – 6.8.21. Jar, contains org.testng.Com mandLineArgs, org. TestNG. Annotations. * classes, such as can join together.
Download way:

Read More: