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 Max Bowsher <ma...@ukf.net> on 2007/05/10 09:21:31 UTC

Use of xml-apis or xmlParserAPIs with JDK 1.4 or later - useless if not in endorsed dir, with JDK 1.4 +?

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.


Re: Use of xml-apis or xmlParserAPIs with JDK 1.4 or later - useless if not in endorsed dir, with JDK 1.4 +?

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
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: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Max Bowsher <ma...@ukf.net> 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.