Ok, thanks, will try that.
Quick question about classpath, does it work through folders, or do i need the exact folder where the file is? (since i'm using maven it would be a lot easier to just add .m2/repository to classpath..)
Added /hibernate-distribution-3.6.0.Final/lib/required and /hibernate-distribution-3.6.0.Final to the classpath, still not luck..
Edit: Having a real hard time understanding this, and googleling doesn't really help, since 90% of the things i find are old things that have been changed *sigh*..
Since i am using maven, the maven dependency way should be the easiest way to go.
The quick start guide you linked to tells me to use org.hibernate.hibernate-core. I check in the maven repository browser which version of hibernate-core should be available, and try some of these, but maven can't find them. So i'll try org.hibernate.hibernate, version 3.2.4.ga, which maven can find.
With the added dependency in maven, i shouldn't have to do anything else to get this to work?
Also, my resulting .jar file does not contain anything other than my compiled source files. Is this correct? Combined with setting the $CLASSPATH env variable to the locations of the hibernate jars (corresponding to the maven dependency), this should work?
I have also added the jar files to the project library in eclipse, dunno if this is needed..
|