Bindu,
This is not a Selenium question. Please help keep this forum relevant by posting queries that are ONLY related to Selenium.
You should be posting your query on the testng-users google forums.
Now to answer your question:
You are having a CLASSPATH issue. TestNG is not able to find your CLASSES. Is there any specific reason as to why you would want to run your code only via a “java “ command instead of using a build tool such as [Maven/Gradle] ? If there is no specific reason, I would suggest that you please spend sometime learning about a build tool and run your tests using the build tool. Managing the classpath is a lot more easier in those cases.
With respect to that NullPointerException that you are seeing, that’s a bug. I have fixed it as part of https://github.com/cbeust/testng/pull/1811
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c6938c4b-a832-4fc2-844f-9f8f3972fd33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/c6938c4b-a832-4fc2-844f-9f8f3972fd33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3241A915-8EA9-4A5E-8454-57E3D07174BA%40gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.