hi, i tried to send you a private message on the hibernate forum but private messages where disabled.
while running my application i got this exception:
net.sf.hibernate.HibernateException: could not find file: hibernate.cfg.xml
at net.sf.hibernate.cfg.Configuration.configure(Configuration.java:934)
first i tried this:
Code:
sessionFactory = new Configuration().configure().buildSessionFactory();
i got the exception, when i specify the absolute path of the file it works, but i don't want to use absolute path.
where should i place hibernate.cfg.xml so that it works.
physically my files are organized as follows:
src
----hibernate.cfg.xml
----com
-------aaaa
---------classes
-------------home.java(the file in witch i put the above code)
-------------login.java
thank you for your support