How do you add jar's to the project?

24 views
Skip to first unread message

ConsideredOpinion

unread,
Feb 28, 2011, 12:46:39 AM2/28/11
to enclojure
I want to use com.csvreader (javacsv-2.0.jar)

How do I do that?

I tried Libraries | Add Dependency and it appears in the Libraries but
I still get:

#<CompilerException java.lang.IllegalArgumentException: Unable to
resolve classname: CsvReader (NO_SOURCE_FILE:218)>
when I try to use it, OR

#<CompilerException java.lang.ClassNotFoundException:
com.csvreader.CsvReader (NO_SOURCE_FILE:228)>
when I try (import...

It seems to partially recognize since if I type com. I get
com.csvreader as a choice

But on:
(let [csv (CsvReader. filename)

I get the errors


Any help would be appreciated.

Slartibartfast

unread,
Feb 28, 2011, 9:44:42 AM2/28/11
to enclojure
On Feb 28, 12:46 am, ConsideredOpinion <consideredopin...@gmail.com>
wrote:
Did you restart the REPL after adding the dependency? Did you launch a
Project REPL for the same project that has the new dependency? If the
answer to either of those is "no", close the current REPL and launch
that project's Project REPL (right click close to where you added the
dependency) and try it again. If it still doesn't work, post the exact
code and exact error message to this thread.

ConsideredOpinion

unread,
Mar 1, 2011, 12:03:17 AM3/1/11
to enclojure
Many thanks.

I started NetBeans today and it all worked.

Thanks again
Reply all
Reply to author
Forward
0 new messages