title: Find conf file regardless how application started
body: <p>I'm newbie to java.</p>
  
  <p>I have some directory structure</p>
  
  <pre><code>  product/
          conf/
          classes/com/../.. 
  </code></pre>
  
  <p><code>conf/</code> contains some configuration file, while under <code>classes/</code> I have my application. </p>
  
  <p>How can I ensure from inside java code that I'm able to find file in <code>conf/</code> despite way I'm executing it (e.g. from eclipse, from different directories, from crontab etc.).</p>
  
  <p><strong>P.S.</strong></p>
  
  <p>Files in <code>conf/</code> are not resources, since required to be edited by user. 
  Is there're way to know where my <code>.class</code>, so I canuse relative path form that directory to reach my directory (e.g. MY_CLASS_DIR/../../../../conf)</p>