# Problems with hibernate and classpath

**URL:** https://forum.liquibase.org/t/problems-with-hibernate-and-classpath/136
**Category:** General Discussion
**Created:** [July 17, 2009, 3:56pm UTC](https://forum.liquibase.org/t/problems-with-hibernate-and-classpath/136 "2009-07-17T15:56:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![colditz](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@colditz](https://forum.liquibase.org/u/colditz)
#### Post date: [July 17, 2009, 3:56pm UTC](https://forum.liquibase.org/t/problems-with-hibernate-and-classpath/136/1 "2009-07-17T15:56:00Z")

</div>

Hi everyone,

I am driving crazy with the execution of liquibase, it does not find the org/hibernate/cfg/Configuration. I write the command i use:

java -jar liquibase.jar --classpath=.\hibernate3.jar;.\derby.jar;.\derbyClient.jar --ChangeLogFile=changelog.xml --url=hibernate:hibernate.cfg.xml diffChangeLog --baseDriver=org.apache.derby.jdbc.ClientDriver --baseUrl=jdbc:derby:{myDB} --baseUsername=… --basePassword=…

I have tried setting the classpath in different ways: setting the windows system classpath and with the -classpath option after the java command, and it does not work

I have read that it could be because the org/hibernate/cfg/Configuration class references other classes which are not there, if that’s the case, how could I know which are those classes to include them?

I hope you can help.

Thanks!!

---

<div class="post-metadata">

### Author: ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)
#### Post date: [July 17, 2009, 3:56pm UTC](https://forum.liquibase.org/t/problems-with-hibernate-and-classpath/136/2 "2009-07-17T15:56:00Z")

</div>

try passing the --logLevel=FINEST flag.&nbsp; That should give you a stacktrace which may help.

Nathan

---

<div class="post-metadata">

### Author: ![tc\_liqb](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tc\_liqb](https://forum.liquibase.org/u/tc_liqb)
#### Post date: [July 17, 2009, 3:56pm UTC](https://forum.liquibase.org/t/problems-with-hibernate-and-classpath/136/3 "2009-07-17T15:56:00Z")

</div>

liquibase uses the AnnotationConfiguration which is not included in hibernate3.jar  
make sure you also add the hibernate-annotations.jar to your cp
