Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Java
»
Beginning Java
"import org.apache.http.HttpRequest;" Cannot be Resolved
Natalie Kopple
,
Ranch Hand
Sep 08, 2011 07:15:22
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Under the "package" and above the "public class ...", I put
import org.apache.http.HttpRequest;
I got the error message saying that import statement cannot be resolved. Please help. Thank you.
Jesper de Jong
,
Java Cowboy
staff
Sep 08, 2011 07:26:04
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
You must add the JAR file that contains this class to the classpath. It's probably the
Apache HttpClient
library.
Natalie Kopple
,
Ranch Hand
Sep 08, 2011 08:24:12
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
Thanks a lot. I am missing a JAR.
Post by:
autobot
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 11620 times.
Similar Threads
Trying to Redirect. 302 Error. HTTP CLIENT
import java.io.Console cannot be resolved
Tomcat deployement Problem SEVERE: Error listenerStart
Get Request Instance ID and Request Start Time from HTTP Request
Porting application in JDK1.1 to JDK1.3
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 01:30:00
.