Hello Ben,

what is a tree class loader ?

Regards,

Antoine

Ben wrote:
> Nah. commandline will never get me the hierarchy that I want. java.exe
> only accepts a flat set of urls.
>
> What I'm doing is to have a proxy class: MainProxy.
>
> 1. A system property will be set (say, set it to "lib") to call MainProxy
> 2. Another system property is set to the actually class name.
> 3. when MainProxy takes controll from within the new vm, it reads the
> class path tree property (which is "lib" in this case).
> 4. MainProxy creates a tree class loader that looks recursively into
> all jars under lib.
> 5. MainProxy loads the target class using the tree class loader.
> 6. MainProxy also needs to set the thread context class loader.
>
> And there it goes.
>
> It's just the commons-logging thing always giving me problem. Had to
> do ugly work-around for it.
>
> :-(
>
>
>
>
>
> On 8/8/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote:
>> On Mon, 7 Aug 2006, Ben <[EMAIL PROTECTED]> wrote:
>>
>> > I'm talking about the forked version, cuz that's almost the only
>> > mode I use. :-)
>>
>> How do you get your classloader into the forked VM?  What kind of
>> changes do you need to make to the task?  Only modify the commandline
>> used to start the VM?
>>
>> Stefan
>>


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

Reply via email to