I'm having trouble compiling code from clojure-contrib. Here's a  
reproducible example based on the current svn heads of each (1121, 257).

% cd /tmp
% svn co https://clojure.svn.sourceforge.net/svnroot/clojure/trunk  
clojure > /dev/null
% svn co 
https://clojure-contrib.svn.sourceforge.net/svnroot/clojure-contrib/trunk 
  clojure-contrib > /dev/null
% cd clojure
% ant > /dev/null
% java -cp clojure.jar:/tmp/clojure-contrib/src:/tmp/myclasses  
clojure.lang.Repl
Clojure
user=> (require 'clojure.contrib.except)             ; same behavior  
with or without this line, just showing that clojure.contrib is  
accessible
nil
user=> (binding [*compile-path* "/tmp/myclasses"] (compile  
'clojure.contrib.except))
java.lang.RuntimeException: java.lang.ClassNotFoundException:  
clojure.contrib.except$throwf__35 (NO_SOURCE_FILE:0)
user=>  (System/getProperty "java.class.path")
"clojure.jar:/tmp/clojure-contrib/src:/tmp/myclasses"
user=> (binding [*compile-path* "/tmp/myclasses"] (compile  
'clojure.contrib.except))
java.lang.RuntimeException: java.lang.ClassNotFoundException:  
clojure.contrib.except$throwf__44 (NO_SOURCE_FILE:0)
user=>
% ls -R /tmp/myclasses
clojure

/tmp/myclasses/clojure:
contrib

/tmp/myclasses/clojure/contrib:
except$throwf__35.class except$throwf__44.class except.class
%  java -version
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06-153)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)

The ClassNotFoundException is thrown even though it appears that the  
class should be found. A class file with that name exists in the  
(global) classpath. The example shown is Mac OS X Leopard. The failure  
is exactly the same on Ubuntu 8.10 Linux with this java -version:

% java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Client VM (build 1.6.0_0-b12, mixed mode, sharing)

--Steve


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to