You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Barry Draper <ba...@informix.com> on 2001/06/02 18:26:28 UTC

Question: Can a Java application dynamically load specific versio ns of xerces.jar and xalan.jar

Is there a way for a Xerces-Java/Xalan-Java application to dynamically load
specific versions 
of xerces.jar and xalan.jar files independent of what is specified in the
CLASSPATH, so that all 
DOM and XSLT methods called are guaranteed to be from the specific
xerces.jar and xalan.jar files 
and not from some other JAR files specified in the CLASSPATH.
I am looking for a Java facility for JAR files which is analogous to
dynamically loading C and C++ libraries on 
Sun Solaris using dlopen or on Windows using the Win32 API function
LoadLibrary.
Can it be done with the java.lang.ClassLoader or some other standard
classes?
Can someone point me to some sample code which demonstrates how to do this?


Thanks.
Barry Draper
barry@informix.com