hibernate.cfg.xml keep parlel of your runnable code on the classpath. should be put under src/main/resources, which is put in the classes folder by build tools.[enter image description here][1] Project src/main/java com.package.Hibernate files of java hibernate.cfg.xml