Hi Max,

You should use the Endorsed Standards Override Mechanism [1] (either the 
default endorsed directory or -Djava.endorsed.dirs). Depending on the 
versions of xml-apis.jar and the JDK, if you merely place the jar on the 
classpath it will either be ineffective or in the worst case you'll end up 
with a hybrid of two JAXP versions where some of the API is loaded from 
xml-apis.jar and the rest is loaded from the JDK.

Thanks.

[1] http://java.sun.com/j2se/1.4.2/docs/guide/standards/

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

Max Bowsher <[EMAIL PROTECTED]> wrote on 05/10/2007 03:21:31 AM:

> Hi,
> 
> I'm trying to understand the proper usage of xml-apis or xmlParserAPIs
> jars. Is it true that, if using JDK 1.4 or later, they are useless when
> placed on the normal classpath, and must be placed in an endorsed
> directory to have any effect?
> 
> Thanks,
> Max.

Reply via email to