On Oct 12, 12:48 am, atreyu <atreyu....@gmail.com> wrote: > Hi folks and congrats to George Jahad for this great work. > Hoewer the cdt dont work on my windows vista. After some changes on my > own i get the same error of Greg Willams: > > java.lang.ClassNotFoundException: com.sun.jdi.Bootstrap (cdt.clj:28) > > i've tried add-classpath of tool.jar (where is the class in my jdk) > with various formats, > after testing the urls in browser with success but i get the > ClassNotFound all the time > > Current directory is c:/Users/atreyu/AppData/Roaming/.emacs.d/ > Clojure 1.2.0 > user=> java.lang.ClassNotFoundException: com.sun.jdi.Bootstrap > (cdt.clj:28) > user=> java.lang.Exception: Unable to resolve symbol: set-source-path > in this context (NO_SOURCE_FILE:2) > user=> java.lang.Exception: Unable to resolve symbol: cdt-attach in > this context (NO_SOURCE_FILE:3) > user=> (def file-url (format "file://%s/../lib/tools.jar" > (System/getProperty > "java.home"))) > #'user/file-url > user=> file-url > "file://c:\\Program Files\\Java\\jdk1.6.0_21\\jre/../lib/tools.jar" > user=> (def file-path "c:\\Program Files\\Java\\jdk1.6.0_21\\jre/../ > lib/tools.jar") > #'user/file-url > user=> (.exists (java.io.File. file-path)) > true > user=> (add-classpath file-url) > WARNING: add-classpath is deprecated > nil > user=> (import com.sun.jdi.Bootstrap) > java.lang.ClassNotFoundException: com.sun.jdi.Bootstrap > (NO_SOURCE_FILE:15) > > i hope somebody'll can help this poor win users ;-)
ok i have made a (ugly) trick to make it work, copying tools.jar in cdt/lib and changing cdt.el: (defun cdt-query-cmdline () (let ((path (strip-trail cdt-dir))) (format "java -classpath%s/lib/clojure-1.2.0.jar;%s/lib/clojure- contrib-1.2.0.jar;%s/lib/debug-repl-0.3.0-20091229.021828-3.jar;%s/lib/ tools.jar;%s/src clojure.main --repl" path path path path path))) I guess there is a nicer solution :-/ -- 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