On Tue, Aug 13, 2013 at 1:59 PM, Akhil Wali <green.transis...@gmail.com> wrote:
> Hi All,
>
> A really noob question.
>
> Why do I get "FileNotFoundException Could not locate incanter__init.class or
> incanter.clj on classpath:   clojure.lang.RT.load (RT.java:443)" when i load
> a file that uses incanter in emacs?
> Here's the file...
>
> (ns default.core
>   (:require incanter core charts stats datasets))
>
> (defn plot []
>   (view (scatter-plot :Sepal.Length :Sepal.Width
>                       :group-by :Species
>                       :data (get-dataset :iris))))
>
> (plot)
>
> This works in lein repl just fine.
> I'm using Emacs 24 and nrepl.el 0.1.8.
>
> This issue was posted on Github way long back. Seems to be solved, but by
> simply upgrading emacs. Doesn't really work in my case.
> Any advise?

Couple things.

1. I'm assuming you've declared the proper dependencies in your
`project.clj` file since this works from `lein repl`, however it's
worth checking.

2. How are you connecting to your project? Simply loading the
namespace won't work if you haven't properly jack in. There's a number
of options here but the simplest is probably to use `M-x
nrepl-jack-in` (usually bound to `C-c M-j`) from this file. It should
Just Work™.

If that doesn't work, I'd probably post some more details about the
project somewhere. At least the `project.clj` and the whole ns would
be helpful in a gist of some sort.

--

In Christ,

Timmy V.

http://blog.twonegatives.com/
http://five.sentenc.es/ -- Spend less time on mail

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to