Re: [tcljava-user] Using a custom classloader as default class loader in TclBlend
Brought to you by:
mdejong
From: Mo D. <mo...@mo...> - 2007-08-22 02:24:13
|
Shibu Cyriac wrote: > Hi All, > I need to use a custom classloader as the default classloader in my > TclBlend application. > Is there any way ought to do that? I don't think there is an easy way to do that. The "default" class loader is typically defined by the JVM. If you want to use a custom one, then you create it and load classes with it. You don't really create a class loader and then tell the system to use it instead of the default one. Classloaders are more of a bottom up approach, where the one you define defers to the system ones when it can't find a class. It is not the case that the system class loaders defer to the custom class loader when a class can't be found. I hope that helps Mo DeJong |