ConfigurationException in Java?

后端 未结 3 1121
情深已故
情深已故 2020-12-15 04:53

Decided to use Apache\'s Common Configuration package to parse an XML File.

I decided to do a:

XMLConfiguration xmlConfig = new XMLConfiguration(file         


        
相关标签:
3条回答
  • 2020-12-15 05:13

    org.apache.commons.configuration.ConfigurationException extends org.apache.commons.lang.exception.NestableException.

    Do you have Commons Lang on your path also? If not, Eclipse will fail to resolve the ConfigurationException class, and you'll get that error.

    0 讨论(0)
  • 2020-12-15 05:17

    I also faced this problem. To fix this - Please download commons-lang-2.6.jar from http://commons.apache.org/proper/commons-lang/download_lang.cgi and add this commons-lang-2.6.jar to your project's build path. this should solve your problem.

    0 讨论(0)
  • 2020-12-15 05:27

    You need Apache Commons Lang 2.6

    (Current release of Apache Common Configuration (1.8) wont works with version 3.1 of Apache Common Lang library, you might need to check Common configuration dependencies here )

    0 讨论(0)
提交回复
热议问题