2015-12-08 94 views
1

我試圖從Clojure程序運行Windows命令。我有一個小的反響聲明測試它:Clojure:CreateProcess錯誤,系統找不到指定的文件

(:require [clojure.java.shell :as sh]) 

(defn testcal [cob] 
    (let [cmd (str "echo hi") 
     result (sh/sh cmd)])) 

它扔我下面的錯誤:

Exception in thread "main" java.io.IOException: Cannot run program "echo hi": CreateProcess error=2, The system cannot find the file specified

我的Java路徑看起來不錯,一切檢查。有人可以幫我弄這個嗎?

回答

相關問題