I have my hibernate.cfg.xml located at src/main/resources/ but I keep getting this error when I run my maven project, I have also tried putting the path to the file in the configuration like this but still got the error
Configuration conf = new Configuration();
conf.configure("/src/main/resources/hibernate.cfg.xml");
What am I doing wrong?
And when I go to the properties of the project and go to Source I see /src/main/resources in the build path?
It also runs when I make it in eclipse, but when I export to jar it stops working but I have it in class path as you can see
Thanks
Edit
Here is my directory in my eclipse project
And then here is it when I open the .jar file
Are you saying the .xml should be in the root directory?


![Hibernate config [1]](https://www.lemona.fr/i.sstatic.net/0mPpk.png)
