Hi!
I'm not being able to import a particular class (FinanceService
) from a jar. All the others work fine, including the inner-class FinanceService$Versions
. I'm getting a NoClassDefFound
exception, and I'm not sure how to proceed.
This exception occurs, paraphrasing an answer I've found here, when the source was successfully compiled, but at runtime, the required class files were not found, but I can clearly see it inside the .jar, whose first elements are:
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
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 this code proves the contrary. Any idea what to do?
Thanks!