[Logo]
Forums Register Login
Hibernate Error with folders
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.
 
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?
 
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?
paste your directory structure and hibernate configuration file..
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards



All times above are in ranch (not your local) time.
The current ranch time is
Dec 14, 2017 03:23:21.