標籤:
首先在網上搜到了一個國外網站的同樣問題的解決方案:
http://stackoverflow.com/questions/21886271/exception-when-launching-new-project-with-lein-new
- Are you using lein 2.3.x+? if not try lein upgrade
- Are you running lein repl in the proper directory?
- does lein deps succeed in downloading everything it needs?
- does lein version work (ie: is leiningen completely broken) if it does not work, delete ~/.lein and run it again.
發現自己的leiningen版本是2.0.0,於是去官網的releases裡面找到了最新的2.5然後下載:https://github.com/technomancy/leiningen/releases
然後找到leiningen通過Eclipse的run裡面的External tool來配置的解決方案:http://blog.csdn.net/xiejianming/article/details/6950630
不過我在配置Location與Working directory時用的是絕對位址,還有在配置Arguments的時候一定要寫成“new ${project_name}”,不然會報之前的那個錯誤。
目前run之後會有如下提示:
Generating a project called jim-cloud-server based on the ‘default‘ template.
The default template is intended for library projects, not applications.
To see other templates (app, plugin, etc), try `lein help new`.
這個應該不是配置問題了,所以leiningen配置到Eclipse的問題初步解決了。
初步解決leiningen配置到Eclipse中出錯的問題