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

Problem with setting and using hibernate

 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using edit plus and tomcat 5 .I want to use hibernate in my application . But dont know which jar file to include in my app and where it should be placed.

I have read each and every book and googled throough all the hibernate sites but now i am confused with where to put where . I just want to know 2 things

1) what jar files to have in order to use hibernate
2) where should these jar file be place (some have told to put the jar files in the web app's lib file and some have told to place it in the tomcats common/lib folder )

Please any body please answer these two questions .
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a pretty thorough link discussing just that:

How to Set Up Hibernate

Just download the core and maybe even annotations modules from hibernate.org. Put all the required jar files that come in the download on your runtime AND compile time classpath. Once you've done that, you're good to go. It's that easy!
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cameron Wallace McKenzie wrote:Here's a pretty thorough link discussing just that:

How to Set Up Hibernate

Just download the core and maybe even annotations modules from hibernate.org. Put all the required jar files that come in the download on your runtime AND compile time classpath. Once you've done that, you're good to go. It's that easy!



What do you mean by runtime and compile time classpath. What is the difference between runtime classpath and compile time classpath
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Varun Nayudu wrote:What do you mean by runtime and compile time classpath. What is the difference between runtime classpath and compile time classpath

One's the classpath you need at compile time, one's the classpath you need at runtime. They don't always need the same set of libraries.
 
Varun Nayudu
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:
Varun Nayudu wrote:What do you mean by runtime and compile time classpath. What is the difference between runtime classpath and compile time classpath

One's the classpath you need at compile time, one's the classpath you need at runtime. They don't always need the same set of libraries.


I meant to say is we set classpath by specifying the path in the environment variable on the operation system (like i am using windows vista) .

What i have done is i have set the jar files in my web application's lib folder . Is that correct ?

And what is do i need to do other than this ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic