could not find main class error is coming while running java prms in eclips
<p>I'm running java progrm in eclipse and I'm calling 1 class from other class.. if I run class contains main method it is giving error as </p>

<blockquote>
  <p>could not find main class. program wil exit</p>
</blockquote>

<p>please tel me what is happening here sample code is here </p>

<pre><code>public static void main(String[] args)
    {
        Test t1=suitToRun();
    TestRunner.run(t1);

}
public static Test suitToRun()
{
    TestSuite suite= new TestSuite();
    suite.addTestSuite(Login.class);
    return suite;
}
</code></pre>
