I don't have Enclojure installed at the moment, but the error you're getting 
indicates that the jars you've pulled out do not contain the 
org.enclojure.repl.main class.  You'll need the jar file that contains an entry 
at org/enclojure/repl/main.class.  As a last resort, you could grab the sources 
for the Enclojure REPL server[1], and build them yourself (eliminating any 
doubts re: the contents of jars you might be redistributing with your 
application(s)).

FWIW, my understanding is that Enclojure will be using nREPL[2] in the 
future[3], just as tools like Jark and Counterclockwise do now.  If you're 
looking for a remote REPL with support in an IDE, and you continue to have 
difficulty with Enclojure, counterclockwise + nREPL is probably your best bet 
for now.  If you fundamentally prefer Enclojure, you'll then be able to move 
back to it once it switches to nREPL without touching your applications' remote 
REPL integration.

- Chas

[1] https://github.com/EricThorsen/enclojure-repl
[2] http://github.com/clojure/tools.nrepl
[3] http://groups.google.com/group/enclojure/msg/a742dd461c88109b

On May 30, 2011, at 4:24 PM, Bruce Fancher wrote:

> Apologies for sending this to the general clojure list, but I've already 
> tried and failed (twice) to get a response from the enclojure list and I 
> thought that maybe someone here might be able to help.  The answer (if there 
> is one) might also be of general interest to people looking for remote REPL 
> alternatives to swank.
> 
> Thanks,
> 
> Bruce
> 
> Begin forwarded message:
> 
>> From: Bruce Fancher <br...@iterative.com>
>> Date: April 17, 2011 3:18:22 PM EDT
>> To: encloj...@googlegroups.com
>> Subject: Can't start Remote unmanaged REPL
>> Reply-To: encloj...@googlegroups.com
>> 
>> 
>> I'm trying to follow the instructions under "Remote unmanaged REPLs" at 
>> http://www.enclojure.org/REPLSupport, but without any luck.  The 
>> instructions say to do this:
>> 
>> java -server -cp clojure.jar:org.enclojure.repl.jar:org.enclore.commons.jar 
>> org.enclojure.repl.main "My external REPL server"
>> 
>> I pulled down and unpacked the contents of enclojure-plugin-2010-23-mar.nbm 
>> to find the above referenced enclore jars.  While I couldn't find a 
>> org.enclojure.repl.jar anywhere, I did find org.enclojure.repl-server.jar 
>> and org.enclojure.repl-client.jar, so I tried pulling those out and using 
>> them instead:
>> 
>> java -server -cp 
>> clojure.jar:org.enclojure.repl-server.jar:org.enclojure.repl-client.jar:org.enclore.commons.jar
>>  org.enclojure.repl.main "My external REPL server" 11345
>> 
>> This results in:
>> 
>> Exception in thread "main" java.lang.NoClassDefFoundError: 
>> org/enclojure/repl/main
>> Caused by: java.lang.ClassNotFoundException: org.enclojure.repl.main
>>      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>      at java.security.AccessController.doPrivileged(Native Method)
>>      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>>      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>> 
>> I saw some mentions about other people getting similar exceptions in the 
>> list archives, but couldn't find any workarounds.  BTW, I've tried this on a 
>> Mac and on Gentoo Linux with identical results.
>> 
>> Thanks,
>> 
>> Bruce
> 
> 
> -- 
> 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

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