Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: new HttpClient(); Setting the classpath with correct files

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default new HttpClient(); Setting the classpath with correct files

    I'm a new member in here, but i'm going to be active user, so if i notice i can help someone, i'll do that!
    Ya, hi everyone!


    This is what i'm trying to do:
    HttpClient - HttpClient Tutorial (And the code isn't a problem for me, but setting (HttpClient client = new HttpClient(); to work is)

    I've had big difficulties with HttpClient and it's dependencies. I have tried to add it's libraries to Eclipse by adding the jar-files (HttpClient - Dependencies) to Java build-path. I can find tutorials that explains nicely how to use the library, but i have no clue how to set it up. Can some smarter person explain it to me step by step: 1. open your eclipse, 2. open new java project. 3. now click the right mouse button on your project folder and go to propetities... Please! I've tried it many ways myself, but for some reason i cant get it work. Platform is windows.

    Sorry for my english skills, working on it!

    Cheers!
    Last edited by Friend_q; March 31st, 2012 at 03:26 PM.


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,164
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: new HttpClient(); Setting the classpath with correct files

    Where is the class: HttpClient defined? If it is in a jar file the compiler must know where to find the jar file.
    I don't know how to tell your IDE how to find jar files. You will have to look at the IDE's doc or ask the question in the IDE section of the forum.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Installing JMF, setting up Classpath in Netbeans Problem
    By chronoz13 in forum Java Theory & Questions
    Replies: 0
    Last Post: May 19th, 2011, 09:11 AM
  2. Replies: 0
    Last Post: April 30th, 2011, 10:02 AM
  3. tutorial for proxyauthentication using httpclient
    By jaya in forum Java Networking
    Replies: 1
    Last Post: January 21st, 2011, 09:28 AM
  4. [SOLVED] Problems setting up java files that I downloaded from a publisher's website
    By vendetta in forum Java Theory & Questions
    Replies: 1
    Last Post: February 10th, 2010, 03:43 PM
  5. Problems in setting classpath
    By missyati in forum Java Theory & Questions
    Replies: 3
    Last Post: June 30th, 2009, 12:43 AM