Where to put the external JAR files?
<p>I am working with the Eclipse IDE and I know how to use an external JAR. I know how to add them in to build path. I am getting the perfect output in eclipse but when I navigate to the bin folder of eclipse where <code>.class</code> file is located in the command prompt, when I use the command </p>

<pre><code>java MySQLConnector
</code></pre>

<p>It is returning an error as class not found. I think the code is not able to find <code>MySQLConnector.jar</code> file. How do I add the JAR file while executing the class.</p>

<p>I have already generated the class file, I used <code>javac</code> and got no errors while compilation. Please tell me how should I proceed further?</p>

<p>My class name is Main, my mysqlconnector.jar file is in C drive. I am using the following command:</p>

<pre><code>javac -cp c:/mysqlconnector.jar Main.java
java -cp c:/mysqlconnector.jar Main
</code></pre>

<p>I am getting no compilation error. But getting error after executing the class file as:
Error: Could not find or load main class Main.</p>
