I had the same problem.
But the dicussion gave me the helpful associative hint.
In my case httpcore-4.1-alpha1.jar was missing.
--
View this message in context:
http://old.nabble.com/import-can-not-be-resolved-error-tp27043420p27274150.html
Sent from the HttpClient-User mailing list archive
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
On 06/01/2010, Ajay Bansal ajay.bansa...@gmail.com wrote:
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
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
Not working. :(
To be more specific :
Here is my classpath (I am using eclipse)
classpath
classpathentry kind=src path=src/
classpathentry kind=con
path=org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6/
classpathentry kind=con
While I am trying to solve those import issues, I would like to execute
following request using java code
--header=X-P-Timestamp: 1262780093 --header=X-P-PAccessId:
3NJZKDY87A97 --header=X-PSignature: ClYCatFCVDV0= --header=Accept:
application/xml http://localhost:8080/pri-api/demo/catalog;
My mistake :-)
org.apache.httpcomponents:httpclient may be the maven's artifact name
I've just checked in my code : org.apache.http.client should work
However if these imports are in a piece of code that used to work, it seems to be it have been designed to
use HttpClient 3.x and not 4.x
A
True. I also discovered that :).
I actually just used one the example files given on the site.
On Wed, Jan 6, 2010 at 10:09 PM, Ken Krugler kkrugler_li...@transpac.comwrote:
You're trying to use HttpClient 3.0 package names with the 4.0 jar.
For example, my imports for using HttpClient 4.0