Error: Could not find or load main class org.testng.TestNG

Viewed 13505

Error: Could not find or load main class org.testng.TestNG

I used the following steps/commands to run my testNG script through command prompt:

1. in my project folder, create a lib folder and copy all the jar files
2. open cmd --> cd myProjectDirectoryPath
3. set classpath=myProjectDirectoryPath/bin
4. set classpath=myProjectDirectoryPath/lib/*
5. java org.testNG.TestNG testng.xml

but after that i am getting Could not find or load main class org.testng.TestNG error. tried to debug but still not successful. can someone help me.

1 Answers
Related