Clojure is great. I have begun integrating Clojure v1.0 into my
current project. I seem to be missing something real easy, ...

It seems like every path I set from "java -cp" is ignored from inside
of REPL, main or calling AOT classes. In fact, when I start Clojure
from a directory, I  have to explicitly (add-classpath
"file:///some/path/") from REPL to compile clj files in the same
directory that I started Clojure from (or any other directory).

The best part is that when I enter...

(println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader))))

from REPL, I see the proper classpaths, but can't use them until I
explicitly add them with (add-classpath "...").

I can get around REPL and main classpath issues easy enough, but I
must use AOT compiled classes in my project. I need to call compiled
classes from my Java code. I just don't know how to force AOT classes
to recognize the java.class.path property.

I keep finding new ways to print the exception...

Caused by: java.io.FileNotFoundException: Could not locate
com/genedavis/clojure/testing/test__init.class or
com/genedavis/clojure/testing/test.clj on classpath:

at clojure.lang.RT.load(RT.java:398)
at clojure.lang.RT.load(RT.java:367)
at clojure.core$load__5058$fn__5061.invoke(core.clj:3734)
at clojure.core$load__5058.doInvoke(core.clj:3733)
at clojure.lang.RestFn.invoke(RestFn.java:413)
at clojure.lang.Var.invoke(Var.java:346)

Any suggestions?

Thanks in advance!

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