Using JAXP 1.4.x with Java 5

Java 5 includes per default JAXP 1.3. However, sometimes it is required to upgrade to JAXP 1.4. This can be done with putting the JAXP 1.4 jars into endorsed libs. To achieve this, you have various options.

  1. As I did not want to switch JAXP for all my projects, I created a directory called endorsed in my project.
  2. Next, I copied the jar files jaxp-api-1.4.2.jar and jaxp-ri-1.4.2.jar into this directory.
  3. The Java VM now needs to be started with the VM parameter -Djava.endorsed.dirs=path_to_project/endorsed

One thought on “Using JAXP 1.4.x with Java 5

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>