I believe this is not caused by any problems with the debugging environment.
Instead you appear to not have the clojure jar on your classpath. I would recommend you explicitly launch java with java -cp "H:\path\to\clojure.jar" plus any additional arguments of course. if this is still not working for you, please post the exact command you are using to invoke java, as well as a listing of all jars on your classpath, and I'll try to help some more. Good luck, --Robert McIntyre 2010/10/8 limux <liumengji...@gmail.com>: > I do a full source install of clojure follow by the article "Emacs > Front End to the Clojure Debugging Toolkit", I started the java vm > with all the necesory arguments, and M-x cdt, then there will be some > error messages as below: > > Current directory is H:\heoxsoft\emacs\emacs-23.2\bin/ > java.lang.NoClassDefFoundError: clojure/main > Caused by: java.lang.ClassNotFoundException: clojure.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) > Could not find the main class: clojure.main. Program will exit. > Exception in thread "main" > Debugger exited abnormally with code 1 > > I am a newbie of clojure and java, thanks for you help! > > My java is sun jdk 1.6.18, os is windows 7 x64. I will try it after > October 10 because I will install the Ubuntu 10.10. > On 10月8日, 下午7时32分, George Jahad <cloj...@blackbirdsystems.net> wrote: >> sa-jdi.jar is supposed to come with the jdk. The code I use for >> finding it should work for sun's 1.6 jdk on linux and osx. >> >> Which java are you using? What os are you running it on? >> >> Also, what problem are you running into without it? (I think I only >> use it for some advanced features which you may not need.) >> >> On Oct 7, 8:15 pm, limux <liumengji...@gmail.com> wrote: >> >> >> >> >> >> >> >> > where is the sa-jdi.jar, there isn't the sa-jdi.jar under my java's >> > lib directory. >> >> > On 9月29日, 下午12时00分, George Jahad <cloj...@blackbirdsystems.net> wrote: >> >> > > hmmm, you must be as big a debugger geek as I am, but I'm not sure >> > > anyone else would be interested. >> >> > > In any case the commands are almost trivial, which is why I don't >> > > think it will be too hard to port this to other IDE's: >> >> > > These are theCDTcommands that were generated by the Emacs front end >> > > in the first example: >> >> > > (set-bpclojure.set/difference) >> > > (reval s1) >> > > (reval s2) >> > > (reval count) >> > > (reval (count s2)) >> > > (step-over) >> > > (reval (reduce disj s1 s2)) >> > > (up) >> > > (down) >> > > (cont) >> > > (line-bp "/Users/georgejahad/incoming/clo11/clojure/src/clj/clojure/ >> > > set.clj" 56) >> >> > > On Sep 28, 5:13 am, David Nolen <dnolen.li...@gmail.com> wrote: >> >> > > > On Tue, Sep 28, 2010 at 3:40 AM, George Jahad >> > > > <cloj...@blackbirdsystems.net>wrote: >> >> > > > > As some of you know, I suffer from a seemingly interminable obsession >> > > > > with improving theClojuredebugging story. It just seems so clear to >> > > > > me thatClojuredeserves a world class debugger, one befitting it's >> > > > > power, beauty and elegance. Maybe one day, we'll get there. Till >> > > > > then, here are my latest improvements to theCDT: >> >> > > > Great stuff! Would it be possible to write a version of the tutorial >> > > > that >> > > > shows how to accomplish the same things purely from the command line? >> > > > While >> > > > I love Emacs as much as the next guy, I think a tutorial that shows >> > > > how to >> > > > debug using only theCDTREPL would be useful to many people. >> >> > > > David > > -- > 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