Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError: org/hibernate/Session

 
Tom Hopkins
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting this error msg while running TestClient for hibernate. I am not using any IDE. All compilation is fine.

Here is how i run
java -cp ..\..\lib\*;..\..\*;. TestClient

..\..\*-for getting hibernate3.jar
..\..\lib\* - for getting all other jars.

Here is my directory structure.
C:\hibernate-3.2.5.ga\hibernate-3.2\src\User\TestClient.java

I know there is some issue with my classpath..but i am not able to resolve it.
Any help greatly appreciated.

Thanks
Tom
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic