java endorsed dirs ignored

Discussion in 'Java' started by David Kensche, Feb 2, 2004.

  1. 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
    David Kensche, Feb 2, 2004
    #1
    1. Advertising

  2. David Kensche

    Hop Pocket Guest

    Try putting your endorsed libs in

    %JAVA_HOME%\jre\lib\endorsed

    instead.

    -CV

    "David Kensche" <-aachen.de> wrote in message
    news:bvlr6r$g5h$-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
    >
    Hop Pocket, Feb 2, 2004
    #2
    1. Advertising

  3. 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\"/>
    David Zimmerman, Feb 2, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Bedford
    Replies:
    1
    Views:
    6,888
    Chris Bedford
    Oct 6, 2003
  2. Krishnan Raghu

    Endorsed libraries, classpath

    Krishnan Raghu, Apr 3, 2004, in forum: Java
    Replies:
    2
    Views:
    3,652
    Krishnan Raghu
    Apr 3, 2004
  3. Frank Fredstone

    jdk 1.4.2 javac and java.endorsed dirs

    Frank Fredstone, Jun 22, 2006, in forum: Java
    Replies:
    0
    Views:
    1,368
    Frank Fredstone
    Jun 22, 2006
  4. E11
    Replies:
    0
    Views:
    530
  5. Roedy Green

    Java.ext.dirs puzzle

    Roedy Green, Jun 18, 2009, in forum: Java
    Replies:
    0
    Views:
    553
    Roedy Green
    Jun 18, 2009
Loading...

Share This Page