Results 1 to 2 of 2
  1. #1
    dan0 is offline Member
    Join Date
    Feb 2009
    Posts
    40
    Rep Power
    0

    Question [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:
    C:\Program Files\Apache
    I then added the following to the classpath variable:
    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

  2. #2
    dan0 is offline Member
    Join Date
    Feb 2009
    Posts
    40
    Rep Power
    0

    Default

    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

  1. Getting httpclient working with eclipse.
    By int80 in forum Eclipse
    Replies: 4
    Last Post: 03-31-2009, 01:17 PM
  2. Putting code together.
    By newbee in forum New To Java
    Replies: 3
    Last Post: 04-17-2008, 03:53 AM
  3. Putting your own type in a Set
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-15-2008, 07:32 PM
  4. JDeveloper Dependencies
    By pringle in forum New To Java
    Replies: 0
    Last Post: 01-09-2008, 12:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •