NoClassDefFoundError: org/apache/commons/lang3/StringUtils

后端 未结 6 1698
孤独总比滥情好
孤独总比滥情好 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:07

    If you're using Maven, put this inside your pom.xml file:

    Maven Central Repository for Commons Lang:

    
        commons-lang
        commons-lang
        2.6
    
    

    Maven Central Repository for Apache Commons Lang:

    
        org.apache.commons
        commons-lang3
        3.11
    
    

    Don't forget: Update Maven Project


    Apache Commons Lang ™ Dependency Information

    Last Published: 30 August 2020 | Version: 3.11

    Apache Maven

    
      org.apache.commons
      commons-lang3
      3.11
    
    

    Apache Buildr

    'org.apache.commons:commons-lang3:jar:3.11'
    

    Apache Ivy

    
      
    
    

    Groovy Grape

    @Grapes(
    @Grab(group='org.apache.commons', module='commons-lang3', version='3.11')
    )
    

    Gradle/Grails

    compile 'org.apache.commons:commons-lang3:3.11'
    

    Scala SBT

    libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.11"
    

    Leiningen

    [org.apache.commons/commons-lang3 "3.11"]
    

    Reference:

    • https://commons.apache.org/proper/commons-lang/dependency-info.html

提交回复
热议问题