Results 1 to 2 of 2
- 03-13-2009, 05:45 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 40
- Rep Power
- 0
[SOLVED] Putting HttpClient and dependencies on classpath
In eclipse I'm getting an error message that states: "The import org.apache cannot be resolved." Does anyone know what is wrong?
I've downloaded HttpClient and it's dependencies and stored them in folder:
I then added the following to the classpath variable:C:\Program Files\Apache
C:\Program Files\Apache\commons-httpclient-3.1-src.zip;C:\Program Files\Apache\commons-logging-1.1.1-src.zip;C:\Program Files\Apache\commons-codec-1.3-src.zip;C:\Program Files\Apache\junit-4.5.jar;C:\Program Files\Apache
- 03-13-2009, 09:10 PM #2
Member
- Join Date
- Feb 2009
- Posts
- 40
- Rep Power
- 0
I resolved the issue by:
1. Re-downloading the binary versions of HttpClient and its dependents.
2. Putting the jar file locations of the HttpClient and its dependents in the classpath
3. Add the jar files to eclipse, by modifying the build path and adding "external jar files" - the jar files of HttpClient and its dependents.
Similar Threads
-
Getting httpclient working with eclipse.
By int80 in forum EclipseReplies: 4Last Post: 03-31-2009, 01:17 PM -
Putting code together.
By newbee in forum New To JavaReplies: 3Last Post: 04-17-2008, 03:53 AM -
Putting your own type in a Set
By Java Tip in forum java.langReplies: 0Last Post: 04-15-2008, 07:32 PM -
JDeveloper Dependencies
By pringle in forum New To JavaReplies: 0Last Post: 01-09-2008, 12:44 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks