Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : Exception in thread "main" java.lang.NoClassDefFoundError:

$
0
0
Rather than calling java directly, it is much easier to use the provided liquibase.bat file that ships with the liquibase zip file. That batch file will automatically build your classpath using the liquibase jar and all the jars that are in the lib directory. The java executable itself does not allow you to add a path to a directory to the classpath, it expects that every entry on the classpath refers to a specific jar file. 

I also suggest that you put the parameters that don't change very often into a liquibase.properties file in your project directory to save typing an possible errors. 

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Viewing all articles
Browse latest Browse all 2993

Trending Articles