java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException
I am getting following exception while using httpclient.
</p> <p>java.lang.NoClassDefFoundError:org/apache/commons/codec/DecoderException<br> at org.apache.commons.httpclient.HttpMethodBase.&lt;init(HttpMethodBase.java:216)<br> at org.apache.commons.httpclient.methods.GetMethod.&lt;init(GetMethod.java:88)</p> <p>
Please tell me why am I getting this exception?
Comments
2 Responses to “java.lang.NoClassDefFoundError: org/apache/commons/codec/DecoderException”
Leave a Reply
You need to put commons-codec-1.2.jar into the classpath. commons-codec-1.2.jar is dependency in HttpClient 3.0
Thanks