I am getting below error while executing testng.xml through command prompt Error : Could not find or load main class org.testng.TestNG
D:\>cd D:\Test\20July2018\test_automation\test_Framework\TestAutomation
D:\Test\20July2018\test_automation\test_Framework\TestAutomation>set projectLocation=D:\Test\20July2018\test_automation\test_Framework\TestAutomation
D:\Test\20July2018\test_automation\test_Framework\TestAutomation>cd %projectLocation%
D:\Test\20July2018\test_automation\test_Framework\TestAutomation>set classpath=%projectLocation%\bin;%projectLocation%\Ivy\*
D:\Test\20July2018\test_automation\test_Framework\TestAutomation>java org.testng.TestNG %projectLocation%\config\testrun_config.xml
Error: Could not find or load main class org.testng.TestNG
Let me know what I am making mistake.
Thanks Prashant