java endorsed dirs ignored

D

David Kensche

Hi,
I'm trying to use the java endorsed dirs mechanism.
I have may jsdk installed in C:\j2sdk1.4.1_02 which
is my JAVA_HOME. I created the "endorsed" directory
in %JAVA_HOME%\lib and copied xerces.jar into it.
I start my application via ant with those additional
arguments:

<jvmarg value="-Djavax.xml.parsers.SAXParserFactory
org.apache.xerces.jaxp.SAXParserFactoryImpl" />

<jvmarg value="-Djava.endorsed.dirs %JAVA_ENDORSED_DIRS%;../lib" />

where the application's lib directory ../lib also contains
xerces. But my application ignores all that and keeps
using crimson. Can anybody help?

Thanks beforehand,
David
 
D

David Zimmerman

David said:
<jvmarg value="-Djavax.xml.parsers.SAXParserFactory
org.apache.xerces.jaxp.SAXParserFactoryImpl" />

<jvmarg value="-Djava.endorsed.dirs %JAVA_ENDORSED_DIRS%;../lib" />

-D variables need an '=' to assign them
<jvmarg value="-Dfoo=\"foo value\"/>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top