Skip to main content

JAXP 1.4 with Java 5? [SOLVED]

2 replies [Last post]
mpetersen
Offline
Joined: 2007-09-19
Points: 0

Hello everyone,

I identified some problems with my application with JAXP 1.3 which are solved with JAXP 1.4. However, the target platform is Java 5. So: How can I use JAXP 1.4 with Java 5?

Thank you.

Message was edited by: mpetersen

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joehw
Offline
Joined: 2004-12-15
Points: 0

Use the endorsed mechanism [1], download jaxp jars from jaxp.dev.java.net and put them under:

[jdk1.5]/jre/lib/endorsed

Or use the bootclasspath option, sth like this:
-Xbootclasspath/p:${jaxp jar dir}/jaxp-api.jar:${jaxp jar dir}/jaxp-ri.jar

[1] http://java.sun.com/j2se/1.5.0/docs/guide/standards/index.html

mpetersen
Offline
Joined: 2007-09-19
Points: 0

Thank you, that solved the problem. Now I need to figure out how to configure Maven to do that.