java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory

前端 未结 5 586
走了就别回头了
走了就别回头了 2021-01-02 21:16

I am tring to send mail by AWSCredentials but getting an exception

java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory

5条回答
  •  时光说笑
    2021-01-02 21:50

    In my case, I had two libraries that I created in Netbeans 7.2: one for the Apache Commons Codec 1.6, and one for the Apache Commons HttpClient 4.2.2. In this case, because the library I made for HttpClient also contained the Codec 1.6 jar, I was getting this same error.

    Be sure you don't have two of the same libraries referenced in your class path, or two conflicting versions of the same library.

提交回复
热议问题