title: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
body: <p>I am getting this error when compiling my java program</p>
  
  <pre><code>java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  </code></pre>
  
  <p>Then I knew that I should add the path of <code>mysql-connector-java-3.1.14-bin.jar</code> to the java classpath. I am using Windows XP, I edited the classpath in the controlpanel/system/enviromental variables</p>
  
  <p>the classpath was : <code>.;C:\j2sdk1.4.2_16\jre\lib;</code></p>
  
  <p>so now it became : <code>.;C:\j2sdk1.4.2_16\jre\lib;C:\Program Files\mysql-connector-java-3.1.144</code></p>
  
  <p>however, i still get the same error, moreover, when I type set classpath in the cmd ( just to check what is the current classpath ) i get :</p>
  
  <pre><code>CLASSPATH= .;C:\j2sdk1.4.2_16\jre\lib;
  </code></pre>
  
  <p>can anyone help me fix this ?</p>