title: error could not find or load main class -eclipse?
body: <ul>
  <li>Currently working on <strong>selenium webdriver</strong> and using <strong>java</strong>. </li>
  <li>I have created a java project as <strong>OneReports</strong> and inside the project i have many java files as shown in the screenshot</li>
  </ul>
  
  <p><img src="https://i.stack.imgur.com/I2vPt.jpg" alt="enter image description here"></p>
  
  <ul>
  <li>I'm trying to run the java file through command prompt and getting error as follows:
  <strong>C:\Program Files\Eclipse\eclipse>java LoginOneReports.java
  Error: Could not find or load main class LoginOneReports.java</strong></li>
  </ul>
  
  <p>At the same time i want to create a task scheduler for the <strong>Test.xml</strong>. The xml file contains three java files as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" &gt;
  &lt;suite name="TestAll"&gt;
  &lt;test name="test1"&gt;
  &lt;classes&gt;
  &lt;class name="test.LoginOneReports" /&gt;
  &lt;/classes&gt;
  &lt;/test&gt;
  &lt;test name="test2"&gt;
  &lt;classes&gt;
  &lt;class name="test.OEPR_DefaultTab" /&gt;
  &lt;/classes&gt;
  &lt;/test&gt;
  &lt;test name="test3"&gt;
  &lt;classes&gt;
  &lt;class name="test.OEPR_InternalvsExternalTab" /&gt;
  &lt;/classes&gt;
  &lt;/test&gt;
  &lt;/suite&gt;
  </code></pre>
  
  <p>I have created a <strong>run.bat</strong> as follows:</p>
  
  <pre><code>@echo off
  set ProjectPath=C:\Documents and Settings\amth\workspace\OneReports\src\
  echo %ProjectPath%
  set PATH=%ProjectPath%bin;%ProjectPath%lib*
  set path=%PATH%%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Java\jdk1.7.0_51\bin;
  echo %PATH%
  pause
  echo java org.testng.TestNG %ProjectPath%Test.xml
  </code></pre>
  
  <ul>
  <li>I'm getting the error as <strong>error could not find or load main class</strong>. Please any one can help immediately. </li>
  </ul>