Reputation: 1042
I'm currently trying to add a second file to my first leiningen project.
In pro/core.clj
(ns pro.core
(:gen-class)
(:require ([pro.protocols :as prtcl])))
(extend-protocol prtcl.Matrix
...
In pro/protocols.clj
(ns pro.protocols)
(defprotocol Matrix
"Protocol for working with 2d datastructures."
(lookup [matrix i j])
(update [matrix i j value])
(rows [matrix])
(cols [matrix])
(dims [matrix]))
When running lein compile I keep getting:
Exception in thread "main" java.lang.ClassNotFoundException: prtcl.Matrix, compiling:(pro/core.clj:8)
Thank you!
Upvotes: 2
Views: 110
Reputation: 1042
In addition to Diego's answer, I hat to rewrite
(:require ([pro.protocols :as prtcl]))
to
(:require [pro.protocols :as prtcl])
Upvotes: 0