java.lang.ClassNotFoundException: org.apache.http.util.Args - Which dependency should I add?

后端 未结 2 1353
粉色の甜心
粉色の甜心 2020-12-03 23:48

I\'m running a Java application and had the following error:

java.lang.ClassNotFoundException: org.apache.http.util.Args

I belie

相关标签:
2条回答
  • 2020-12-04 00:04

    And for the future: typically, your favorite search engine can tell you which jar file you need; searching for

    "org.apache.http.util.Args which jar"

    directly send me to

    http://www.java2s.com/Code/Jar/h/Downloadhttpcore43beta1jar.htm

    0 讨论(0)
  • 2020-12-04 00:06

    You need to add the follwoing dependency:

    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpcore</artifactId>
        <version>4.4</version>
    </dependency>
    
    0 讨论(0)
提交回复
热议问题