title: Initial SessionFactory creation failed in hibernate error
body: <p>firends i m using netbeans ide and its placed hibernate.cfg.xml in default src/java folder
  but whenever i run the application its displayed below error :</p>
  
  <p><code>Initial SessionFactory creation failed.org.hibernate.HibernateException: /hibernate.cfg.xml not found</code></p>
  
  <p>class :</p>
  
  <pre><code>public class myutil {
   private static final SessionFactory sessionFactory = buildsf(); 
   public static SessionFactory buildsf() { 
      try {
        // Create the SessionFactory from standard (hibernate.cfg.xml)
        return new Configuration().configure("config/hibernate.cfg.xml").buildSessionFactory();
      } catch (Throwable ex) { // Log the exception.
        System.err.println("Initial SessionFactory creation failed." + ex);
        throw new ExceptionInInitializerError(ex);
      }
   }
  } 
  </code></pre>