Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > java endorsed dirs ignored

Reply
Thread Tools

java endorsed dirs ignored

 
 
David Kensche
Guest
Posts: n/a
 
      02-02-2004
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

 
Reply With Quote
 
 
 
 
Hop Pocket
Guest
Posts: n/a
 
      02-02-2004
Try putting your endorsed libs in

%JAVA_HOME%\jre\lib\endorsed

instead.

-CV

"David Kensche" <(E-Mail Removed)-aachen.de> wrote in message
news:bvlr6r$g5h$(E-Mail Removed)-Aachen.DE...
> 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
>



 
Reply With Quote
 
 
 
 
David Zimmerman
Guest
Posts: n/a
 
      02-02-2004


David Kensche wrote:

>
> <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\"/>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue Involving JAR Files Conflict and Endorsed Standards Override Mechanism E11 Java 0 09-06-2006 07:56 AM
jdk 1.4.2 javac and java.endorsed dirs Frank Fredstone Java 0 06-22-2006 12:54 AM
Endorsed libraries, classpath Krishnan Raghu Java 2 04-03-2004 05:24 PM
getting eclipse to recognize endorsed library over-rides (specifically, want it to pick up later versions of xalan) _clb_ Chris Bedford Java 1 10-06-2003 05:03 PM
Transcender is Endorsed by Microsoft Davin Mickelson MCSD 16 10-04-2003 08:45 AM



Advertisments