I have managed to get it to work now. The solution was to ensure that the
Sun JRE was on the system PATH, rather than the IBM one. The IBM JRE seems
to have a problem with the class file

clojure/contrib/pprint/PrettyWriter.class in clojure-contrib.jar

...whereas the Sun one doesn't.

The next question is, how can we find out why this is? There would appear to
be two possibilities:

1) The IBM JVM is rejecting a valid class file
2) Clojure is emitting invalid bytecode that the Sun JVM doesn't mind but
the IBM JVM rejects.


2010/1/11 Chris Jenkins <cdpjenk...@gmail.com>

> Incidentally, I just tried Clojure Box 1.0 on the same machine and get
> exactly the same error message. Very odd. One thing that may be unusual
> about my setup is that I am using IBM JDK 1.6 (although I have managed to
> get Clojure + SLIME working on Linux using this JDK). Anyone have any ideas?
>
> 2010/1/11 Chris Jenkins <cdpjenk...@gmail.com>
>
> Hi,
>>
>> I downloaded Clojure Box 1.1 from here http://clojure.bighugh.com/,
>> installed it and tried running it on Windows XP. Emacs starts ok and I get
>> an *inferior-lisp* buffer but I see the following error message:
>>
>> user=> user=> java.lang.Exception: No such var:
>> swank.swank/ignore-protocol-version (NO_SOURCE_FILE:3)
>> user=> user=> nil
>> java.lang.Exception: No such var: swank.swank/start-server
>> (NO_SOURCE_FILE:5)
>>
>> I have googled around for the error message and seen a few situations
>> where people had the wrong version of Clojure. However, I'm not really sure
>> where to go next because I'm rather new to all this.
>>
>> Anyone have any idea how I could investigate and figure out what's up?
>>
>> Cheers,
>>
>> Chris
>>
>> PS: FYI here's the full text that I see in my *inferior-lisp* buffer:
>>
>> (require 'swank.swank)
>>
>> (swank.swank/ignore-protocol-version nil)
>>
>> (do (.. java.net.InetAddress getLocalHost getHostAddress)
>> nil)(swank.swank/start-server
>> "c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/slime.5668" :encoding
>> "iso-latin-1-unix")
>>
>> Clojure 1.1.0
>> user=> java.lang.ClassFormatError: JVMCFRE114 field name is invalid;
>> class=clojure/contrib/pprint/PrettyWriter, offset=0 (pprint.clj:6)
>> user=> user=> java.lang.Exception: No such var:
>> swank.swank/ignore-protocol-version (NO_SOURCE_FILE:3)
>> user=> user=> nil
>> java.lang.Exception: No such var: swank.swank/start-server
>> (NO_SOURCE_FILE:5)
>> user=> user=>
>>
>>
>
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to