Results 1 to 4 of 4
  1. #1
    sarwar1234 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default Problem with import libraries

    Hello there,

    I am working on a source code of a program, the program imports 2 libararies in order to perform some functions with the CSV files.....

    But when I open the source code in Eclipse or JBuilder, I get the error for those 2 lines....

    import org.apache.commons.csv.CSVParser;
    import org.apache.commons.csv.CSVStrategy;


    Basically the libraries are not found....

    I can search the CSVParser and CSVStrategy classes on the web, where I can see the details and methods etc...

    Is there any way I can search/download those libraries and add them to eclipse or JBuilder....????

    Many Thanks for the help....

    Best Regards,
    Sarwar

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,734
    Blog Entries
    7
    Rep Power
    21

    Default

    You have two things to do: a) download those libraries and b) tell Eclipse to include those libraries in your project. w.r.t. a) you are on your own but you've found those libraries already; w.r.t. b) go to Project > Properties > Java Build Path > Libraries and press 'Add external JARs'. Select the full path to the .jar file(s) you have downloaded in a) and voila.

    kind regards,

    Jos

  3. #3
    sarwar1234 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default

    Hello,

    Thanks very much for the reply....

    Actually the class file are in text form... as in the link below:

    http://svn.apache.org/repos/asf/comm...CSVParser.java


    But as you say I need to search the jar files.... and then include them.... Can you help me in that where I can find the jar files or all the package....

    Many Thanks....

  4. #4
    sarwar1234 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default

    Hi JoASHH

    That worked.... :)


    Thanks very much....


    Best Regards,
    Sarwar

Similar Threads

  1. Problem in importing jar file in libraries of netbeans
    By dataprofiling in forum AWT / Swing
    Replies: 1
    Last Post: 03-30-2010, 12:30 PM
  2. import problem
    By anki.gulsvart in forum Networking
    Replies: 9
    Last Post: 10-16-2009, 08:03 PM
  3. Import java.io.* problem
    By DD70 in forum New To Java
    Replies: 3
    Last Post: 07-28-2009, 11:45 PM
  4. [SOLVED] import netscape.javascript.* problem
    By shwein in forum New To Java
    Replies: 2
    Last Post: 10-30-2008, 07:43 PM
  5. Simple newbie problem: import 3rd party jar
    By jodyflorian in forum Eclipse
    Replies: 5
    Last Post: 05-30-2008, 05:02 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
  •