You need to add the path to the jar file in the classpath, the directory is not sufficient for it to find the driver.
Paul ----- Original Message ---- From: Joelle Tegwen <[email protected]> To: [email protected] Sent: Thursday, 19 February, 2009 22:12:32 Subject: Re: [Liquibase-user] Works on ubuntu fails on windows The changeset.properties file just has: username=liquibase password=ZSLeyZctabh6CpSA driver=com.mysql.jdbc.Driver logLevel=INFO Adding classpath=C:\\tools\\liquibase\\lib (with or without trailing \\) doesn't help, nor does adding it to the command line. It's supposed to point to the folder that mysql.jar is in, right? Thanks Joelle Voxland, Nathan wrote: > What do you have in your changeset.properties file? Is your classpath > property in there wrong for windows? > > Nathan > > -----Original Message----- > From: Joelle Tegwen [mailto:[email protected]] > Sent: Thursday, February 19, 2009 2:36 PM > To: [email protected] > Subject: [Liquibase-user] Works on ubuntu fails on windows > > I'm sure there's something really obvious I'm missing, but I just can't > figure it out. > > I've been using liquibase fine on Ubuntu, but now I'm setting it up on > our test server (windows server 2003) and it won't run. I'm not getting > > an error code, just the help text so I'm not sure how to fix what I'm > doing. > > If I run: > D:\InetPub\working_copy\ici>c:\tools\liquibase\liquibase.bat > > --defaultsFile=d:\InetPub\working_copy\ici\schema\changeset.properties > --changLogFile=d:\InetPub\working_copy\ici\schema\initialize.xml > --url=jdbc:mysql//localhost/liquibase migrate > > Nothing happens > > If I run: > D:\InetPub\working_copy\ici>java -jar c:\tools\liquibase\liquibase.jar > > --defaultsFile=d:\InetPub\working_copy\ici\schema\changeset.properties > --changeLogFile=d:\InetPub\working_copy\ici\schema\initialize.xml > --url=jdbc:mysql://localhost/liquibase migrate > I get: > > Migration Failed: Cannot find database driver: com.mysql.jdbc.Driver. > For more > information, use the --logLevel flag) > Feb 19, 2009 2:18:35 PM liquibase.commandline.Main main > SEVERE: Cannot find database driver: com.mysql.jdbc.Driver > liquibase.exception.JDBCException: java.lang.RuntimeException: Cannot > find database driver: com.mysql.jdbc.Driver > at > liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLineU > tils.java:94) > at liquibase.commandline.Main.doMigration(Main.java:565) > at liquibase.commandline.Main.main(Main.java:90) > Caused by: java.lang.RuntimeException: Cannot find database driver: > com.mysql.jd > bc.Driver > at > liquibase.commandline.CommandLineUtils.createDatabaseObject(CommandLineU > tils.java:75) > ... 2 more > > The mysql driver is in %LIQUIBASE_HOME%lib > > Is there something I'm missing? > > Thanks > Joelle > > > > > > ------------------------------------------------------------------------ > ------ > Open Source Business Conference (OSBC), March 24-25, 2009, San > Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Liquibase-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/liquibase-user > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA > -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise > -Strategies to boost innovation and cut costs with open source participation > -Receive a $600 discount off the registration fee with the source code: SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > Liquibase-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/liquibase-user > > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Liquibase-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/liquibase-user ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Liquibase-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/liquibase-user
