I have been struggling to modify my classpath in order to import clojure modules on my Windows machine. I have already updates my environment variable through powershell but I get the same error:
Could not locate menu__init.class, menu.clj or menu.cljc on classpath.
Note:
- I have already added (ns db) in db.clj
- All my files are in the same directory (app.clj db.clj etc.)
- I can not use Leinengen
(ns app
(:require [clojure.string :as str])
(:require [db])
(:require [menu]))
I tried to run: $env:CLASSPATH=”.” but it did not work. I also tried “.” and “.”
I ran (println (System/getenv “CLASSPATH”)) in clj to verify my classpath and it was valid but the code still doesn’t run.
Big Dot is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.