On Monday 29 December 2008 20:50, Stephen C. Gilardi wrote: > > ... > > Here it is working with the current clojure.jar and > clojure-contrib.jar: > > % java -cp clojure.jar:clojure-contrib.jar clojure.contrib.repl_ln > Clojure > 1:1 user=> (prn "hi") > "hi" > nil > 1:2 user=>
I can't replicate that: % java -cp /repo/JT/clojure-svn/clojure/clojure.jar:/repo/JT/clojure-svn/clojure-contrib/clojure-contrib.jar clojure.contrib.repl_ln Exception in thread "main" java.lang.NoClassDefFoundError: clojure/contrib/repl_ln Caused by: java.lang.ClassNotFoundException: clojure.contrib.repl_ln at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: clojure.contrib.repl_ln. Program will exit. Please accept that all the path names are correct, I checked carefully and more than once and both Clojure Core and Contrib are up-to-date with the current SVN (as of this writing, of course). Anyway, I guess it needs to be pointed that the invocation you supplied won't work unless the Clojure Contrib JAR file is built with pre- compiled Java classes and that this only happens if you supply the clojure.jar property ("-Dclojure.jar=path/to/clojure.jar") to your Ant invocation when you build Clojure Contrib. Once I figured that out, the problem went away. Is this documented anywhere? > ... > > --Steve Randall Schulz --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---