On Thu, 25 Oct 2001 05:35, Serge Knystautas wrote:
> Again in JAMES... I've noticed some weird behavior I can't quite figure out
> (or figure out how to better figure out).  In a class that's loaded in
> james.bar (in the apps/blocks directory that's extracted from james.sar), I
> call Class.forName(myClassName).newInstance().  However, it doesn't seem to
> want to load the class unless I have it in that james.bar file.  Is there a
> way I can load classes that are there OR in dist/apps/james/lib OR in
> dist/lib?

hmm - thats a bug - will look at it tomorrow.

> Also, is there a way I can add a dist/classes directory (or
> dist/apps/james/classes) and pull classes from there as well?
>
> (or point me towards where the classloader are for the bars/sars)

The ClassLoader should be accessible from

Thread.currentThread().getContextClassLoader()

However we have also been talking about expanding ClassLoader 
support/management. I wouldn't mind hearing your opinion on a mail I wrote on 
Sept 30 titled "[phoenix] RT: ClassLoader hierarchy".

-- 
Cheers,

Pete

---------------------------------------------------
"Wise men don't need advice. Fools don't take it." 
                        -Benjamin Franklin 
---------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to