This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark ""import org.apache.http.HttpRequest;" Cannot be Resolved" Watch ""import org.apache.http.HttpRequest;" Cannot be Resolved" New topic
Author

"import org.apache.http.HttpRequest;" Cannot be Resolved

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 320
Under the "package" and above the "public class ...", I put I got the error message saying that import statement cannot be resolved. Please help. Thank you.
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12929
    
    3

You must add the JAR file that contains this class to the classpath. It's probably the Apache HttpClient library.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 320
Thanks a lot. I am missing a JAR.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "import org.apache.http.HttpRequest;" Cannot be Resolved
 
Similar Threads
import java.io.Console cannot be resolved
Trying to Redirect. 302 Error. HTTP CLIENT
Porting application in JDK1.1 to JDK1.3
Get Request Instance ID and Request Start Time from HTTP Request
Tomcat deployement Problem SEVERE: Error listenerStart