title: Class Not Found Exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12920265/com-mysql-jdbc-driver-not-found-with-mysql-connector-in-buildpath">com.mysql.jdbc.Driver not found with mysql connector in buildpath</a>  </p>
  </blockquote>
  
  
  
  <p>I'm working on connecting MySQL database to a Java program. When I run my program I am getting this error </p>
  
  <blockquote>
    <p>Class Not Found Exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver</p>
  </blockquote>
  
  <p>for this line </p>
  
  <blockquote>
    <p>try{
          Class.forName("com.mysql.jdbc.Driver").newInstance();</p>
  </blockquote>
  
  <p>So, what's the problem? I'm placing the connector in the project's file.. Is the correct or should it be in another location?</p>
  
  <p>OS Windows XP, Eclipse 4.0, mysql connector 5.1.22</p>