I have tried many things to run my testng.xlm file from terminal but can't run it. I have downloaded latest versions of testng.jar and jcommander.jar and provided path of them in following command
java -cp "PATH/TO/TESTNG.jar:PATH/TO/jcommander-1.7.jar" org.testng.TestNG testng.xml
But I am getting error as
Error: Could not find or load main class testng.xml