• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with setting and using hibernate

 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic