在Windows中使用Datomic(lein-datomic)进行Clojure

时间:2018-05-09 13:06:53

标签: clojure datomic

我已经在Clojure项目中建立并运行了Datomic数据库。它在运行我的单元测试时工作正常但是:

现在我想真实地使用它:

  • 已下载datomic-free-0.9.5697
  • 使用lein-datomic 0.2.0及其说明配置我的clojure项目。
  • 将profiles.clj更新为:

    {:user
     {
     :java-cmd "C:\\Program Files\\Java\\jdk1.8.0_152\\bin\\java.exe"
     :plugins [[lein-datomic "0.2.0"]]
     :datomic {:install-location "C:\\Users\\myusername\\.lein\\bin\\datomic-free-0.9.5697"}}}
     }
    }
    

但如果我现在运行' lein datomic start'我收到一个错误:

java.io.IOException: Cannot run program "bin/transactor" (in directory "C:\Users\myusername\.lein\bin\datomic-free-0.9.5697"): CreateProcess error=2, The system cannot find the file specified
 at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)

profiles.clj install-location有什么问题?它不起作用,因为我使用的是 Windows 。路径格式有问题吗?

"箱/交易器"实际上是bin文件夹,其中存在transactor和transactor.cmd文件。

0 个答案:

没有答案