Reputation: 617
I'm using a HttpClient in a Java desktop application. I've added httpclient-4.0.1.jar and httpmime-4.0.1.jar to the build path, but I receive the error 'The type org.apache.http.HttpResponse cannot be resolved. It is indirectly referenced from required .class files'. Does anyone know which dependency/jar I'm missing?
Upvotes: 6
Views: 15747
Reputation: 7438
That class is part of the HttpCore library, here's a link showing it's uses:
You'll need to include the jar in your classpath / lib.
Upvotes: 3