While running TestNg Tests if you see the below error
Caused by: org.testng.TestNGException: Cannot find class in classpath: com.*
The most common mistake is that you have defined the package as a class in testng.xml and not the package.
The correct way to include all classes in a package like below:
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Test Suite" verbose="2" parallel="false">
<test name="Main set">
<package name="com.*" />