hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Florent Blondeau <fblond...@pingwy.com>
Subject Re: import can not be resolved error
Date Wed, 06 Jan 2010 13:28:14 GMT
hi

I think org.apache.httpcomponents.httpclient are the new packages from 
4.0 version

org.apache.commons.httpclient are the old ones for 3.x versions

see the examples (and use IDE Autocompletion) to be sure ;-)

Hope that helps

florent

Pingwy
27, rue des arènes
49100 Angers



Ajay Bansal a écrit :
> Hi friends,
>
>  
>
> Today I was trying to use httpclient to generate some http requests.
> However, I am not able to go past the first step itself. I am getting errors
> for following classes :
>
>  
>
> import org.apache.commons.httpclient.HttpClient;
>
> import org.apache.commons.httpclient.methods.FileRequestEntity;
>
> import org.apache.commons.httpclient.methods.PostMethod;
>
> import org.apache.commons.httpclient.methods.RequestEntity;
>
>  
>
>  
>
> It says : can not be resolved. 
>
>  
>
> I have following jar files in my classpath
>
>  
>
>  
>
> httpclient-4.0.1.jar
>
>  
>
> Am I missing some other jar file for above mentioned packages?
>
>  
>
> Thanks
>
> -Ajay
>
>  
>
>  
>
>
>   

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