Have a look at this code. It might shed some light on your problem. https://github.com/lprefontaine/Boing/blob/1.3.0/src/boing/resource.clj
We are using it with 1.3 but it should work under 1.5.x Feel free to copy it and try it, it's standalone without dependencies other than Clojure. As far as we know it's problem free. Luc P. > tried both... nothing worked... :( > > Jim > > On 26/04/13 20:16, Jonathan Fischer Friberg wrote: > > Did you put "/" at the beginning of the string to resource? Because > > you shouldn't. > > > > You should call it like this: (resource "foo.xml"). > > > > Jonathan > > > > > > On Fri, Apr 26, 2013 at 8:47 PM, Jim - FooBar(); <jimpil1...@gmail.com > > <mailto:jimpil1...@gmail.com>> wrote: > > > > Hello everyone, > > > > I hope you're all doing well... > > > > Can anyone enlighten my as to why I cannot read anything from the > > top directory of a jar? The jar in question is on the classpath > > and the foo.xml file is located at the top directory...tries > > clojure.java.io/resource <http://clojure.java.io/resource> tried > > .getResourceAsStream from the classloader + the Class object... > > > > any ideas? > > > > thanks, > > Jim > > > > -- > > -- > > 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 > > <mailto: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 > > <mailto:clojure%2bunsubscr...@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 unsubscribe from this group and stop receiving emails from it, > > send an email to clojure+unsubscr...@googlegroups.com > > <mailto:clojure%2bunsubscr...@googlegroups.com>. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > > > -- > > -- > > 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 unsubscribe from this group and stop receiving emails from it, send > > an email to clojure+unsubscr...@googlegroups.com. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > -- > 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 unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Softaddicts<lprefonta...@softaddicts.ca> sent by ibisMail from my ipad! -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.