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.&amp;lt;init(HttpMethodBase.java:216)<br>
at org.apache.commons.httpclient.methods.GetMethod.&amp;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”

  1. Amit Pal on January 4th, 2009 5:11 pm

    You need to put commons-codec-1.2.jar into the classpath. commons-codec-1.2.jar is dependency in HttpClient 3.0

  2. Jayachand on November 24th, 2009 11:39 am

    Thanks

Leave a Reply




Related Post

nested exception is java.lang.NoClassDefFoundError: net/sf/ezmorph/Morpher
nested exception is java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel /HSSFCellStyle
nested exception is java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel /HSSFCellStyle
Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
Technology