title: unable to resolve class reference org/openqa/selenium/WebDriver
body: <p>In the directory <code>C:\jars&gt;</code> In the Jars folder I have Test folder. Inside the Test folder I have <code>OneReports.jar</code> ,<code>testng.jar</code>, <code>TestngTestSuiteUsingXML.java</code> and <code>Test.XML</code></p>
  
  <p>The <code>OneReports.jar</code> I have exported from eclipse and it contains a few java Projects.</p>
  
  <p>The <code>Test.xml</code> I have created testsuite and that file is </p>
  
  <p>In the command Prompt I tried to run:</p>
  
  <ol>
  <li><p>C:\Jars>javac -cp "C:\Program Files\Java\selenium*.jar";"OneReports.jar";"testng
  .jar" test\TestngTestSuiteUsingXML.java</p></li>
  <li><p>C:\Jars>java -cp "C:\Program Files\Java\selenium*.jar";"OneReports.jar";"testng.
  jar" test.TestngTestSuiteUsingXML</p></li>
  </ol>
  
  <p>Here I got error as follows:</p>
  
  <pre><code>[[TestNGClassFinder]] Unable to read methods on class test.LoginOneReports - unable to resolve class reference org/openqa/selenium/WebDriver
  Exception in thread "main" java.lang.NoClassDefFoundError: org/openqa/selenium/WebDriver
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
      at java.lang.Class.privateGetPublicMethods(Unknown Source)
      at java.lang.Class.getMethods(Unknown Source)
      at org.testng.internal.TestNGClassFinder.&lt;init&gt;(TestNGClassFinder.java:59)
      at org.testng.TestRunner.initMethods(TestRunner.java:409)
      at org.testng.TestRunner.init(TestRunner.java:235)
      at org.testng.TestRunner.init(TestRunner.java:205)
      at org.testng.TestRunner.&lt;init&gt;(TestRunner.java:153)
      at org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:522)
      at org.testng.SuiteRunner.init(SuiteRunner.java:157)
      at org.testng.SuiteRunner.&lt;init&gt;(SuiteRunner.java:111)
      at org.testng.TestNG.createSuiteRunner(TestNG.java:1299)
      at org.testng.TestNG.createSuiteRunners(TestNG.java:1286)
      at org.testng.TestNG.createSuiteRunners(TestNG.java:1289)
      at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
      at org.testng.TestNG.run(TestNG.java:1057)
      at test.TestngTestSuiteUsingXML.main(TestngTestSuiteUsingXML.java:20)
  Caused by: java.lang.ClassNotFoundException: org.openqa.selenium.WebDriver
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 18 more
  
   C:\Jars&gt;
  </code></pre>
  
  <p>Could any one please help me to fix the issue. I'm not using maven. Using Selenium webdriver, TestNG, Java for writing code.</p>