I'm still fairly new to Clojure so I apologize if this is a completely newbie question but I wasn't able to find a sufficient answer online.
Basically, my problem is that any time I try to run my project, I get an error like:
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: Could not locate greeter__init.class or greeter.clj on classpath:
In this case, greeter.clj is in the project in the same directory as the file containing my main function.
For illustration purposes, I've created a project that has a directory tree like this:
My code for core.clj is as follows:
(ns omg.core
(require [greeter]))
(defn -main[] (greet))
My code for greeter.clj is:
(ns greeter)
(defn greet [] println("Hello world"))
Whenever I type lein run -m omg.core
I get the exception mentioned above. What am I doing wrong?