Clojure + Java 混合开发
2020-06-13 本文已影响0人
polyau
修改配置文件project.clj
添加代码
:source-paths ["src/clojure"]
:java-source-paths ["src/java"]
:test-paths ["test/clojure" "test/java"]
但是运行lein run
会报如下错误
Java compiler not found; Be sure to use java from a JDK
rather than a JRE by modifying PATH or setting JAVA_CMD.
添加环境变量JAVA_CMD
= %JAVA_HOME%\bin\java
即可