Liquibase can't find database driver

Hi,


I can’t seem to get Liquibase to find my database driver.


Here’s the contents of my config file: 

  1. driver=com.mysql.jdbc.Driver
  2. url=jdbc:mysql://localhost/hypo_test
  3. username=root
  4. password=
  5. classpath=src/java/
  6. changeLogFile=db/dbChangeLog.xml
src/java definitely contains mysql-connector-java-5.1.13-bin.jar


I’ve tried this by passing it via java --classpath, and by placing it in the current working directory, and none of it seems to help.


Any suggestions?

Can you try with


Shantanu

That did it.  Thanks.


This was for OSX.  Is this par for the course there?  The documentation says that the path is sufficient.

The path is sufficient when it is supposed to contain .class files. When you have a JAR, it should be explicitly specified on the CLASSPATH. In JDK 1.6 and higher you can say /path/to/*.jar but I have noticed that doesn’t work in all cases.


Shantanu