To start off I am not a Java programmer, so it would be helpful if your answers are not defined in terms of Java (inasmuch as that makes sense).
I have a leiningen project (specifically a web project using noir) using what seems to be a common pattern of putting your clojure source files in src/YOUR-NAMESPACE/
. So far I've had success adding directories and files, and I have been using the file path as the basis for the ns
(following the pattern I see in the generated code).
I added a new file that did not work, and I'm wondering why. It's path is PROJECT-ROOT/src/bayou/lib/api-helpers.clj
and its namespace is (ns bayou.lib.api-helpers)
. The specific error I'm getting is:
java.io.FileNotFoundException: Could not locate bayou/lib/api_helpers__init.class or bayou/lib/api_helpers.clj on classpath
What are all the steps one as to take in order for clojure to recognize a namespace?