Java ClassLoader - Adding dynamically loaded jars to the system class loader -



Java ClassLoader - Adding dynamically loaded jars to the system class loader -

is there way update scheme class loader @ runtime? after i've dynamically loaded jar file, there can add together classes/packages loaded jar scheme class loader?

the reason i'm trying while i've had success through passing around newly created classloader in own code, i'm having problem 3rd party library (apache-wsif) doesn't seem working passed in classloader.

i've been able accomplish attempting using following:

thread.currentthread().setcontextclassloader(myclassloader);

as discussed in top reply here: how alter classpath within java?

basically, before calling wsif library need create sure i've set custom classloader contextclassloader on current thread.

java classloader

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -