NestableException cannot be resolved when using apache.commons.configuration
Asked Answered
M

3

14

Im using the following:

import java.util.Collections;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import org.apache.commons.configuration.XMLConfiguration;

and i get:

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

Im using eclipse...

how can i resolve this? he offers me to Configure build path but i dont really know how to solve this collision from there.....

Megathere answered 25/10, 2011 at 15:15 Comment(0)
M
26

Problem solved... had to download the commons-lang-2.4.jar and include in project.

couldnt be more simple than that....

Megathere answered 31/10, 2011 at 9:51 Comment(4)
I think it worths to say that commons-lang3-3.2.1.jar or above doesn't work. It has to be up to the commons-lang-2.6.jar. Thanks for your answer, solved my problem.Conscious
what an absolute mess, what if my project need a newer common lang?Autobiography
@FelicePollano You can add both versions to your projectImmedicable
Worth noting that installing 2.6 alongside current most recent (3.4) worked resolved this for me - i know this is an old thread but may help someone.Network
G
0

Sounds like what is really needed is an update to the PropertiesConfiguration lib so that it gets along with latest lang lib. If its a "free" lib then it might not be coming, considering that its been years since last reply on this thread and this is still happening. I have been having this issue as well, and have not found a way of resolving it apart from the aforementioned inclusion of both lang libs ... which does not seem to present any problems, though strict repository framework implementations (like Maven) might have problems with both libs included.

Gonfanon answered 30/3, 2015 at 15:33 Comment(0)
B
0

Had to remove commons-lang3-3.4 from my Java Build Path and added 2.6 , it solved the problem!

Boltrope answered 22/1, 2016 at 17:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.