I need to provide a jar file which provides an API to retrieve the records from the database using Hibernate.

For example I have an API: 

```
public List getUsers(String locationOfHibernateConfigFile) {
} 

```

I tried by passing the location of the config file with the complete path using `c:\hibernate-cfg.xml` as shown below:

```
SessionFactory sessionFactory = new Configuration()
                          .configure(C:\hibernate.cfg.xml).buildSessionFactory();
session = sessionFactory.openSession();

```

I am getting an error saying `c:\hibernate-cfg.xml is not found`.

Please provide me some pointers to achieve the same.