hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puneet Lakhina" <puneet.lakh...@gmail.com>
Subject Re: Error when creating PostMethod
Date Sun, 14 Oct 2007 13:16:00 GMT
On 10/14/07, Jerome Hollon <jeromehollon@gmail.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I get this error when creating a PostMethod object:
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory
>         at
> org.apache.commons.httpclient.HttpMethodBase.<clinit>(HttpMethodBase.java
> :104)
>         at crevoscope.Main.main(Main.java:42)
>


httpclient requires commons-logging and commons-codec.

Please see here
http://jakarta.apache.org/httpcomponents/httpclient-3.x/dependencies.html

So you will have to download commons-codec and commons-logging from the
respective project sites.

http://commons.apache.org/codec/
http://commons.apache.org/logging/


-- 
Puneet
http://sahyog.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message