title: How to change JCS cache.ccf file's path?
body: <p>I'm trying to change path of cache.ccf file about an hour...<br>
  When I'm calling <code>JCS.getInstance("myRegion");</code> I'm getting this error:  </p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: Failed to load properties for name [/cache.ccf]
  </code></pre>
  
  <p>I tried to put cache.ccf into src folder. In this case everything's OK. But I want it to be in <code>./config/</code> directory, not in <code>./src</code>. I tried to change config file name:  </p>
  
  <pre><code>JCS.setConfigFilename("../config/cache.ccf");
  </code></pre>
  
  <p>But it's not working and I'm getting the same error:</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: Failed to load properties for name [../config/cache.ccf]
  </code></pre>
  
  <p>It seams that JCS tries to find the file named <code>"../config/cache.ccf"</code> in src directory.<br>
  <a href="http://commons.apache.org/jcs/LocalCacheConfig.html">Here</a> i found this sentence:<br>
  The classpath should include the directory where this file is located or the file should be placed at the root of the classpath, since it is discovered automatically.</p>
  
  <p>But my applilcation don't work even if cache.ccf file is in the root directory of project.<br>
  How can I change cache.ccf file's path?</p>