That was the same problem it gave me. When I follow those steps.

Since you already install some stuff, what I did was erase the
~/.emcas.d/ folder (rm -r ~/.emacs.d) and the ~/src/ folder (I don't
remember what, but something got installed there form clojure, and
that was the only thing I had there, that's why I could just erase the
whole folder), and ~/.emacs. So basically to install it, I un-install
all the stuff that did work how I expected.

After this I follow this steps:

1. Install emacs from here: http://emacsformacosx.com/
2. Install Elpa in emacs, following the instructions from:
http://tromey.com/elpa/install.html
3. Install swank-clojure using ELPA: M-x package-list-packages, typing
i next to swank-clojure (http://technomancy.us/swank-clojure)
4. Than just do M-x slime. At this point it will say that clojure is
not install, and ask if you want to install it, just say yes. This
will do the rest. It will download and install for you all you need.
Slime, Clojure, etc.

Once you do this it should work. It worked for me.

Once you do the installation using steps 1, 2 and 3, you'll have a new
~/.emacs, ~/.emacs.d. Notice that if you have Aquamacs install your ~/
Library/Preferences/Aquamacs\ Emacs/Preferences.el will not work,
since you have a ~/.emacs, so in order to use Aquamacs and use it with
out problems, you have to edit your ~/.emacs file, just put ";" at the
beginning of each line you don't want to be consider. By the way, your
~/Library/Preferences/Aquamacs\ Emacs/customizations.el might be
change, and have some lines that say that where included by Elpa, I
erase those lines as well, so I would suggest to do that.

Hope this helps. Good luck Andreas.

Guido

On Dec 3, 9:35 am, Andreas Pauley <apau...@gmail.com> wrote:
> Hi all,
>
> I followed the above swank-clojure instructions using bothAquamacs
> and the plain emacs for Mac OS X on my Leopard Macbook.
> I also tried it on an Ubuntu (Hardy) desktop.
>
> In all of these cases the process fails when slime tries to connect to
> the Lisp interpreter.
>
> Just to be explicit, here are the steps I followed (using Linux this
> time):
> 1. Install ELPA usinghttp://tromey.com/elpa/install.html(No
> problems)
> 2. Install clojure-mode using M-x package-list-packages, typing i next
> to clojure-mode, and then x
> There were a few warnings with this step, but clojure-mode seems to be
> working afterwards.
>
> 3. Install swank-clojure using M-x package-list-packages, typing i
> next to swank-clojure, and then x
> There were quite a few warnings with this step.
> (If I don't install clojure-mode explicitly before swank-clojure, this
> step ends with an error)
>
> 4. M-x slime, answer yes when asking to install Clojure. This ends
> with an error:
>
> It looks like Clojure is not installed. Install now? (y or n)
> Loading url...done
> Loading url-auth...done
> Contacting host: repo.technomancy.us:80
> Loading url-cache...done
> Loading mail-utils...done
> Reading [text/plain]... 571k of 571k (100%)
> Loading arc-mode...done
> Parsing archive file...done.
> Saving file /home/andreas/.swank-clojure/swank-clojure-1.0.jar...
> Wrote /home/andreas/.swank-clojure/swank-clojure-1.0.jar
> byte-code: Wrong number of arguments: delete-directory, 2
>
> Further attempts at M-x slime produces the following error, which is
> probably expected since there is no clojure jar in my home dir, just
> the swank clojure jar.
> The error:
> (require
> 'swank.swank)
>
> (swank.swank/ignore-protocol-version
> nil)
>
> (swank.swank/start-server "/tmp/slime.31171" :encoding "iso-latin-1-
> unix")
>
> Exception in thread "main" java.lang.NoClassDefFoundError: clojure/
> main
> Caused by: java.lang.ClassNotFoundException:
> clojure.main
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:
> 217)
>         at java.security.AccessController.doPrivileged(Native
> Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:
> 205)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:
> 323)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> 294)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:
> 268)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> 336)
> Could not find the main class: clojure.main. Program will
> exit.
>
> Process inferior-lisp exited abnormally with code
> 1
>
> On my mac I have a working clojure which I can play with using jline.
> I've just never been able to get slime and Clojure going.
>
> Any tips?
>
> Thanks,
> Andreas

-- 
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