title: Error- TestngTestSuiteUsingXML.java:6: error: package org.testng does not exist
body: <ol>
  <li>I have a Project called <strong>OneReports</strong> In Eclipse. In the Project i have a Package called <strong>Test</strong>.</li>
  <li><p>The Project as follows:<img src="https://i.stack.imgur.com/fLw6e.jpg" alt="enter image description here"></p></li>
  <li><p>while running the ** TestngTestSuiteUsingXML** java file in eclipse it is fetching the <strong>Test.XML</strong> and it is working fine.</p></li>
  </ol>
  
  <p>But when i verified the same in command Prompt getting error as follows:</p>
  
  <pre><code>C:\Jars&gt;javac TestngTestSuiteUsingXML.java
  TestngTestSuiteUsingXML.java:6: error: package org.testng does not exist
  import org.testng.TestNG;
  ^
  
  TestngTestSuiteUsingXML.java:7: error: package org.testng.xml does not exist
  import org.testng.xml.XmlSuite;
  ^
  TestngTestSuiteUsingXML.java:15: error: cannot find symbol
  XmlSuite suite = new XmlSuite();
  ^
  symbol: class XmlSuite
  location: class TestngTestSuiteUsingXML
  TestngTestSuiteUsingXML.java:15: error: cannot find symbol
  XmlSuite suite = new XmlSuite();
  ^
  symbol: class XmlSuite
  location: class TestngTestSuiteUsingXML
  TestngTestSuiteUsingXML.java:17: error: cannot find symbol
  List&lt;XmlSuite&gt; suites = new ArrayList&lt;XmlSuite&gt;();
  ^
  symbol: class XmlSuite
  location: class TestngTestSuiteUsingXML
  TestngTestSuiteUsingXML.java:17: error: cannot find symbol
  List&lt;XmlSuite&gt; suites = new ArrayList&lt;XmlSuite&gt;();
  ^
  symbol: class XmlSuite
  location: class TestngTestSuiteUsingXML
  TestngTestSuiteUsingXML.java:19: error: cannot find symbol
  TestNG tng = new TestNG();
  ^
  symbol: class TestNG
  location: class TestngTestSuiteUsingXML
  TestngTestSuiteUsingXML.java:19: error: cannot find symbol
  TestNG tng = new TestNG();
  ^
  symbol: class TestNG
  location: class TestngTestSuiteUsingXML
  8 errors
  </code></pre>