<br><br><div class="gmail_quote">On Fri, May 21, 2010 at 9:44 AM, Alessio Stalla <span dir="ltr"><<a href="mailto:alessiostalla@gmail.com">alessiostalla@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Fri, May 21, 2010 at 3:23 PM, Alan Ruttenberg<br>
<<a href="mailto:alanruttenberg@gmail.com">alanruttenberg@gmail.com</a>> wrote:<br>
>> Do you have control on the classloader used by jss? If jclass works,<br>
>> it means that the classloader that loaded org.armedbear.lisp.Lisp<br>
>> knows about FileUtils. If you can force the jss classloader to use<br>
>> Lisp.class.getClassLoader() as its parent, it should work, too.<br>
><br>
> I do, but currently it depends on being able to dynamically load jars. I'd<br>
> like to retain this capability. It uses bsh.ClassManager but it might do to<br>
> work with bsh.classpath.BshClassLoader.<br>
<br>
</div>I didn't mean that you should lose that ability. If you have the<br>
chance to decide which parent classloader bsh.ClassManager gets to<br>
use, you can pass to it the classloader of ABCL's Lisp class. That<br>
will make ABCL's classes visible to it, while retaining the ability to<br>
load jars dynamically.<br>
<div class="im"><br>
> There's also my dwimming of classnames that depends on being able to get a<br>
> list of classes to index.<br>
<br>
</div>That might be problematic. Do you iterate through the classpath<br>
somehow?</blockquote><div> </div><div>Yes. There are java accessors that tell me the classpath.  </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Since there's no general means to do that, people usually<br>


assume that everything in the classpath has been loaded from a<br>
physical jar residing somewhere on the filesystem or the net. OSGi<br>
might break that assumption.<br></blockquote><div><br></div><div>How so? Looks like what they actually do is unpack all their jars to a temp directory. Haven't checked yet whether the java accessors will tell me the class path, but if not that information needs to be *somewhere*.</div>

<div><br></div><div>-Alan</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#888888"><br>
Alessio<br>
</font></blockquote></div><br>