title: Proper usage of Apache Commons Configuration
body: <p>My code is the following:</p>
  
  <pre><code>package org.minuteware.jgun;
  
  import org.apache.commons.configuration.*;
  
  class ConfigReader {
      public void getconfig() {
          Configuration config;
          try {
              config = new PropertiesConfiguration("gun.conf");
          } catch (ConfigurationException e) {
              e.printStackTrace();
          }
          String day = config.getString("sync_overlays");
          System.out.println(day);
      }
  }
  </code></pre>
  
  <p>Eclipse has two problems with this code:</p>
  
  <ol>
  <li>For the <code>package org.minuteware.jgun;</code> line it says <code>The type org.apache.commons.lang.exception.NestableException cannot be resolved. It is indirectly referenced from required .class files</code></li>
  <li>For the line <code>} catch (ConfigurationException e) {</code> it says <code>No exception of type ConfigurationException can be thrown; an exception type must be a subclass of Throwable</code></li>
  </ol>
  
  <p>I've found <a href="https://stackoverflow.com/questions/2416980/configurationexception-in-java">ConfigurationException in Java?</a>, but the solution provided there does not help.</p>