how to import opencsv

This gets me every time. I always have trouble importing jars. I have:

import java.lang.*;
import java.io.*;
import au.com.bytecode.opencsv.*;
     :
    CSVReader inx = new CSVReader(new FileReader(inPath));

And I get the following error:

createVendorPayables.java:59: error: package au.com.bytecode.opencsv does not exist
import au.com.bytecode.opencsv.*;
^
createVendorPayables.java:162: error: cannot find symbol
    CSVReader inx = new CSVReader(new FileReader(inPath));
    ^
  symbol:   class CSVReader
  location: class createVendorPayables
createVendorPayables.java:162: error: cannot find symbol
    CSVReader inx = new CSVReader(new FileReader(inPath));
                        ^
  symbol:   class CSVReader
  location: class createVendorPayables
3 errors

my CLASSPATH is

/srv/tomcat/lib/catalina.jar:/srv/tomcat/bin/tomcat-juli.jar:/srv/tomcat/common/lib/sqljdbc.jar:/srv/tomcat/common/lib/sqljdbc.jar/commons-fileupload-1.2.1.jar:/srv/tomcat/common/lib/commons-io-1.4.jar::/srv/tomcat/common/lib/commons-lang-2.0.jar:/srv/tomcat/common/lib/junit-4.7.jar

and the opencsv jar is (supposedly)  junit-4.7.jar. Few of the examples I've seen on the web show the import statement (why? is this not critical?), so my au.com.bytecode.opencsv.* could be wrong. If so, what would the correct import be?

What am I doing wrong?
LVL 1
MarkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
and the opencsv jar is (supposedly)  junit-4.7.jar
How would it be? JUnit is one api, opencsv is another ...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MarkAuthor Commented:
Right you are!!!  junit-4.7.jar was in the .../lib directory of the opencsv download, so I assumed that was the right jar, but after reading your message I found opencsv-2.3.jar in the .../deploy folder!
0
CEHJCommented:
:)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.