我刚刚开始学习Clojure和Emacs.我有运行Windows的Clojure Box,我希望能够在缓冲区中编写代码然后在REPL中运行它而无需调用
(use 'example.code)
Run Code Online (Sandbox Code Playgroud)
每时每刻.我知道Cc Ck但它没有重新加载命名空间.如果我使用
(in-ns 'example.code)
Run Code Online (Sandbox Code Playgroud)
更改它运行的repl中的命名空间.这样做的正确方法是什么?
我找到了以下指南:
http://mark.reid.name/sap/setting-up-clojure.html
但它似乎是一大堆手动步骤,我敢打赌它已经过时了.在Windows上安装ClojureBox是一件轻而易举的事.有谁知道它的简单安装程序?我在哪里可以下载它,步骤是什么?
谢谢!
编辑:尝试安装蛋糕,得到:
$ sudo gem install cake
Password:
ERROR: While executing gem ... (Gem::RemoteSourceException)
HTTP Response 302
Run Code Online (Sandbox Code Playgroud)
还尝试使用脚本进行安装:
$ sudo ./cake_install.rb
http://github.com/ninjudd/cake-standalone/raw/master/jars/cake-0.5.4.jar
[=============================================================================]
http://build.clojure.org/releases/org/clojure/clojure/1.2.0/clojure-1.2.0.jar
[=============================================================================]
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file (ordered_set.clj:1)
Run Code Online (Sandbox Code Playgroud)
编辑2:现在Java版本问题:)我需要什么版本的Java以及在哪里下载它?
$ sudo cake test
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file (ordered_set.clj:1)
Run Code Online (Sandbox Code Playgroud)
我的Leopard软件是最新的:(
Apple Computer supplies their own version of Java. Use the Software Update feature (available on the Apple menu) to check …Run Code Online (Sandbox Code Playgroud)