Please try the code below and make sure the testNG flag is added in the jar manifest file.
public static void main(String[] args) { org.testng.TestNG.main(args); }
Now you can transfer all the parameters to your bank, which are the same for the jar testNG file.
eg.
java -jar yourjar.jar testng.xml
or
java -jar yourjar.jar -testclass org.test.xyz.java
Himanshu
source share