• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Hibernate Error with folders  RSS feed

 
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there.

I have the following problem.
I have create a small project with Netbeans and i am using Hibernate for a simple CRUD with Derby DB .
Everything works fine when my classes are in the default folder BUT when i create separate folders for classes and not using the default folder nothing works and get the message that hibernate cannot find the classes.
What can i do to solve that .My imports are ok but nothing seems to work no compile errors.

Thanks nice to meet you.
 
Bartender
Posts: 4048
48
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Horche Gratsias wrote:...Everything works fine when my classes are in the default folder BUT when i create separate folders for classes and not using the default folder nothing works and get the message that hibernate cannot find the classes.
...


you should point the Java to find the classes it needs (i.e.: add the location of the classes to the classpath). How you run it BTW?
 
Georgios Chatziefstratiou
Ranch Hand
Posts: 106
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Vijitha Kumara wrote:

Horche Gratsias wrote:...Everything works fine when my classes are in the default folder BUT when i create separate folders for classes and not using the default folder nothing works and get the message that hibernate cannot find the classes.
...


You should point the Java to find the classes it needs (i.e.: add the location of the classes to the classpath). How you run it BTW?



if i point Java to find the classes it needs i also get errors.What do you mean with add the location of the classes to the classpath ?What do you mean how do i run it BTW?
 
Greenhorn
Posts: 27
Hibernate Java jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
paste your directory structure and hibernate configuration file..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!