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
Post a Comment