NoClassDefFoundError: org/apache/commons/lang3/StringUtils

后端 未结 6 1708
孤独总比滥情好
孤独总比滥情好 2020-12-01 10:54

I\'m trying to run the sample project with this library and I get the following error:

Exception in thread \"main\" java.lang.NoClassDefFoundError: 

    org         


        
6条回答
  •  长情又很酷
    2020-12-01 11:19

    I have added commons-lang-2.6.jar & commons-lang3-3.1-sources.jar...

    Here's your problem: commons-lang-2.6.jar doesn't contain the org.apache.commons.lang3 package, since that's part of version 3, and commons-lang3-3.1-sources.jar contains the source code, not the byte code.

    You need to include commons-lang3-3.1.jar instead.

提交回复
热议问题