title: How to Access hibernate.cfg.xml, config.properties, and log4j.properties from outside project folder
body: <p>I want to export my java project (using eclipse) into executable jar,
  but I want hibernate.cfg.xml, config.properties, and log4j.properties editable for future,
  so how to make hibernate access that file from outside project folder or any other way to make that file editable for future,</p>
  
  <p>I have try this code for acces hibernate.cfg.xml from outside project folder</p>
  
  <pre><code>SessionFactory sessionFactory = new Configuration().configure("mon/hibernate.cfg.xml").buildSessionFactory();
  </code></pre>
  
  <p>but i got this error</p>
  
  <pre><code>mon/hibernate.cfg.xml not found
  Exception in thread "main" java.lang.ExceptionInInitializerError
  </code></pre>
  
  <p>and still have no idea about config.properties and log4j.properties,
  any help will be pleasure :)</p>