This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
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: 325
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14950
    
  26

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 8 API documentation
Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
Thanks a lot. I am missing a JAR.
 
Have you checked out Aspose?
 
subject: "import org.apache.http.HttpRequest;" Cannot be Resolved
 
It's not a secret anymore!