title: How do I specify the mysql jar in the classpath from the command line?
body: <p>I am trying to run the mybatis tool from command line, and I have already specified the mysql path, but it still told me com.mysql.jdbc.Driver not found!</p>
  
  <pre><code>"Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"
  
  java -cp ./:./mysql-connector-java-5.1.14.jar -jar ./mybatis-generator-core-1.3.2.jar -configfile xmlconfig.xml
  </code></pre>