Clojure can't find .clj in local directory, . and ./classes on CLASSPATH

后端 未结 5 1328
抹茶落季
抹茶落季 2020-12-05 03:13

When I evaluate (use \'hello) to load hello.clj, the REPL complains with the following error:

java.io.FileNotFoundException: Could not locate hello__init.cla         


        
5条回答
  •  情深已故
    2020-12-05 04:02

    I've defined an alias (in .bash_profile) for loading the REPL:

    alias clojure='CLASSPATH=$HOME/git/clojure/clojure.jar:$HOME/git/clojure-contrib/clojure-contrib.jar:.:classes rlwrap java clojure.lang.Repl'
    

提交回复
热议问题