Question: how to add hibernate.cfg.xml to classpath in eclipse?
Answer: cfg. xml from any different path. If you are using Eclipse, go to Project -> Properties -> Java Build Path -> Source. You can add the new folder where you placed the file, or move the file to the existing folder.