3

I am following an online example to read information from a basic properties file. As I started to implement the code I keep getting the following error at the top of the class.

The type org.apache.commons.lang.exception.NestableException cannot be resolved. It is indirectly referenced from required .class files

I have sought to resolve the error by downloading the apache commons lang package from this page and including it in my project properties, but this did not resolve the issue.

Can someone please give me some insight on why this error is being thrown, and how to resolve it.

Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
JME
  • 2,293
  • 9
  • 36
  • 56

1 Answers1

5

The NestableException class was available in commons-lang v2.6 but it is not included in the latest version (see Javadocs for v3.1).

The Maven dependencies for commons-configuration v1.9 show that it depends upon commons-lang 2.6.

So I suspect you downloaded the latest version of commons-lang by mistake?

Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
  • This is the case, I went into the archive and got 2.6 and everything works as intended. – JME Jun 26 '13 at 13:42