title: NoClassDefFoundError while importing a class with an inner class
body: <p>I'm not being able to import a particular class (<code>FinanceService</code>) from a jar. All the others work fine, including the inner-class <code>FinanceService$Versions</code>. I'm getting a <code>NoClassDefFound</code> exception, and I'm not sure how to proceed.</p>
  
  <p>This exception occurs, paraphrasing an answer I've found here, <em>when the source was successfully compiled, but at runtime, the required class files were not found</em>, but I can clearly see it inside the .jar, whose first elements are:</p>
  
  <pre>META-INF/
  META-INF/MANIFEST.MF
  com/
  com/google/
  com/google/gdata/
  com/google/gdata/client/
  com/google/gdata/client/finance/
  com/google/gdata/data/
  com/google/gdata/data/finance/
  com/google/gdata/client/finance/FinanceService$Versions.class
  com/google/gdata/client/finance/FinanceService.class
  com/google/gdata/client/finance/FinanceUtilities.class
  com/google/gdata/client/finance/PortfolioQuery.class
  </pre>
  
  <p>Just to be sure, I rebuilt the jars, and still got the same error. Since it is the only class that both has an inner class and is failing to load, I considered the hypothesis that there must be a special way of loading it, but <a href="http://briancarper.net/clojure/clojure-qt4-demo.clj" rel="nofollow noreferrer">this code</a> proves the contrary. Any idea what to do?</p>
  
  <p>Thanks!</p>