Tobia
Tobia

Reputation: 9506

Apache Commons Lang 2 vs 3

In my application I'm using apache commons Lang v.3. A requried library give my a

java.lang.ClassNotFoundException: org.apache.commons.lang.StringUtils

Is there a build translation between commmon.lang to commons.lang3 or I have to add both lang libraries?

Upvotes: 39

Views: 30131

Answers (1)

Adrian Shum
Adrian Shum

Reputation: 40036

You can have both Lang2 and Lang3 in your classpath. Due to incompatibility of Lang2 and Lang3, the package is intentionally changed from com.apache.commons.lang to com.apache.commons.lang3 so that you can have both version in classpath without conflict

Upvotes: 62

Related Questions