tags:

views:

62

answers:

2

I am trying to use opencsv library http://opencsv.sourceforge.net/

How to i import it so that i can start using it with NetBeans?

I have no idea what im doing so start from the very beggining after downloading and unzipping the file.

Thanks.

A: 

You can create new maven project and add:

    <dependency>
      <groupId>net.sf.opencsv</groupId>
      <artifactId>opencsv</artifactId>
      <version>2.0</version>
    </dependency>

To Your pom file.

//edit: I suggested it because IMO NetBeans has great maven support, and it's probably the best solution for using external libs in NetBeans. How ever I'm not sure is it right way for beginners.

Maciek Sawicki
+2  A: 

Copy the jar into your project lib folder. Then right click on your project select properties. Now a window opens go to libraries->Add Jar/Folder select your jar and press OK.

daedlus