I followed the instructions given in this post. But I get the message "Could not find or load main class org.testng.TestNG
Running test from CMD is quite easy.
Follow below steps
1- Go to home directory and Set class path
Home Directory > set classpath=Home Directory\bin; and press enter
Home Directory > set classpath=Home Directory\lib*; and press enter
2-Home-directory > java org.testng.TestNG testng.xml