title: Liquibase: Error java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version
body: <p>I use liquibase 3.6.1 to work with Mysql database. I use the lib "mysql-connector-java-6.0.2.jar", I got the below error when using <strong>diff</strong> command:</p>
  
  <blockquote>
    <p>Exception in thread "main" java.lang.UnsupportedClassVersionError:
    JVMCFRE003 bad major version; class=com/mysql/cj/jdbc/Driver, offset=6</p>
  </blockquote>
  
  <p>When I tried the lib "mysql-connector-java-5.1.21.jar", I got another error:</p>
  
  <blockquote>
    <p>Unexpected error running Liquibase: java.lang.RuntimeException: Cannot
    find data base driver: com.mysql.cj.jdbc.Driver</p>
  </blockquote>
  
  <p>My command is: </p>
  
  <blockquote>
    <p>liquibase --referenceUrl=jdbc:mysql://10.53.x.x/mydb
    --referenceUsername=user --referencePassword=pass</p>
  </blockquote>
  
  <p>Are there anyone can help ?</p>