Hello
I'm a clojure newbie, trying to set the working environment on
XEmacs.
I download all the relevant from
http://clojure.codestuffs.com//
and added the following to my init.el
(setq load-path (append load-path (list (expand-file-name "C:/lisp/
clojure/emacs/"))))
(require 'clojure-auto)
(setq swank-clojure-jar-path "C:/clojure_20081217/clojure/
clojure.jar")
(require 'swank-clojure-autoload)
(require 'swank-clojure)
When running "slime", I get the following:
(add-classpath "file:///c:\\lisp\\clojure\\emacs\\")
(require 'swank.swank)
(swank.swank/ignore-protocol-version "2008-07-05")
(swank.swank/start-server "C:\\DOCUME~1\\tzach\\LOCALS~1\\Temp\\slime.
8120" :encoding "binary")
Clojure
user=> nil
user=> nil
user=> "2008-07-05"
user=> Connection opened on local port 4452
4452
user=> Exception in thread "Server 0 [7]" java.lang.RuntimeException:
java.io.UnsupportedEncodingException: binary
at clojure.lang.AFn.run(AFn.java:42)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.UnsupportedEncodingException: binary
at sun.io.Converters.getConverterClass(Converters.java:218)
at sun.io.Converters.newConverter(Converters.java:251)
at sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:
68)
at sun.nio.cs.StreamEncoder$ConverterSE.<init>(StreamEncoder.java:
189)
at sun.nio.cs.StreamEncoder$ConverterSE.<init>(StreamEncoder.java:
172)
at sun.nio.cs.StreamEncoder.forOutputStreamWriter(StreamEncoder.java:
72)
at java.io.OutputStreamWriter.<init>(OutputStreamWriter.java:82)
at swank.core.connection$make_connection__188.invoke(connection.clj:
35)
at swank.core.server$accept_authenticated_connection__505.invoke
(server.clj:31)
at swank.core.server$socket_serve__515.invoke(server.clj:48)
at swank.core.server$setup_server__525$fn__527.invoke(server.clj:64)
at swank.util.net.sockets$socket_server__465$fn__492$fn__494.invoke
(sockets.clj:15)
at clojure.lang.AFn.applyToHelper(AFn.java:172)
at clojure.lang.AFn.applyTo(AFn.java:165)
at clojure.core$apply__2869.doInvoke(core.clj:374)
at clojure.lang.RestFn.invoke(RestFn.java:428)
at swank.util.net.sockets$socket_server__465$fn__492.doInvoke
(sockets.clj:9)
at clojure.lang.RestFn.invoke(RestFn.java:402)
at clojure.lang.AFn.run(AFn.java:38)
... 1 more
Any idea what the problem is?
Thanks